Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SIG: Dispatcher bypass #3646

Merged
merged 2 commits into from
Jan 30, 2020
Merged

SIG: Dispatcher bypass #3646

merged 2 commits into from
Jan 30, 2020

Conversation

sustrik
Copy link
Contributor

@sustrik sustrik commented Jan 30, 2020

This change is Reviewable

@sustrik sustrik requested a review from karampok January 30, 2020 08:00
Copy link
Contributor

@karampok karampok left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed 1 of 3 files at r1.
Reviewable status: 1 of 3 files reviewed, 4 unresolved discussions (waiting on @karampok and @sustrik)


go/sig/internal/sigcmn/common.go, line 53 at r1 (raw file):

	PathMgr    pathmgr.Resolver
	Dispatcher reliable.Dispatcher

I would prefer that we do not use global variables


go/sig/internal/sigcmn/common.go, line 91 at r1 (raw file):

		return nil, nil, serrors.WrapStr("unable to initialize SCION dispatcher", err)
	}
	if sdCfg.FakeData != "" {

fake? what is the prod use case for that?


go/sig/internal/sigcmn/common.go, line 133 at r1 (raw file):

}

func newDispatcher(cfg sigconfig.SigConf) (reliable.Dispatcher, error) {

Any test for the code?


go/sig/internal/sigcmn/common.go, line 134 at r1 (raw file):

func newDispatcher(cfg sigconfig.SigConf) (reliable.Dispatcher, error) {
	if len(cfg.DispatcherBypass) == 0 {

This is string, can you compare it to an empty string?

Copy link
Contributor Author

@sustrik sustrik left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewable status: 1 of 3 files reviewed, 1 unresolved discussion (waiting on @karampok)


go/sig/internal/sigcmn/common.go, line 134 at r1 (raw file):

Previously, karampok (Konstantinos) wrote…

This is string, can you compare it to an empty string?

Done.

Copy link
Contributor

@karampok karampok left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed 1 of 3 files at r1, 2 of 3 files at r2, 2 of 2 files at r3.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @sustrik)


go/sig/internal/egress2/perf2/perf2.go, line 1 at r2 (raw file):

package main

mistake?

Copy link
Contributor

@karampok karampok left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:lgtm:

Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @sustrik)

@sustrik sustrik merged commit 2979c6c into scionproto:master Jan 30, 2020
@sustrik sustrik deleted the bypass branch January 30, 2020 09:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants