Skip to content

Conversation

lukedirtwalker
Copy link
Collaborator

@lukedirtwalker lukedirtwalker commented Dec 30, 2019

  • snet.PacketDispatcherService now has a context aware Register method.
  • snet.Network's Listen and Dial now both take a context.

Contributes #3136


This change is Reviewable

@lukedirtwalker lukedirtwalker requested a review from scrye December 30, 2019 08:00
Copy link
Collaborator Author

@lukedirtwalker lukedirtwalker 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: 0 of 21 files reviewed, 1 unresolved discussion (waiting on @scrye)


go/beacon_srv/main.go, line 216 at r1 (raw file):

	ctx, cancelF := context.WithTimeout(context.Background(), time.Second)
	defer cancelF()
	conn, _, err := pktDisp.Register(ctx, topo.IA(), ohpAddress, addr.SvcNone)

this should use context.Background()

Copy link
Contributor

@scrye scrye left a comment

Choose a reason for hiding this comment

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

:lgtm:

Reviewed 18 of 21 files at r1, 3 of 3 files at r2.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved

Copy link
Contributor

@scrye scrye left a comment

Choose a reason for hiding this comment

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

Reviewed 2 of 2 files at r3.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved

@lukedirtwalker lukedirtwalker merged commit e2f41a8 into scionproto:master Dec 30, 2019
@lukedirtwalker lukedirtwalker deleted the pubSnetCtx branch December 30, 2019 13:32
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