-
Notifications
You must be signed in to change notification settings - Fork 37
add constructor options for timeout, stop using transport.DialTimeout #302
Conversation
e067b52
to
1de208c
Compare
@@ -161,8 +156,9 @@ func newSilentPeer(t *testing.T) (peer.ID, ma.Multiaddr, net.Listener) { | |||
func TestDialWait(t *testing.T) { | |||
t.Parallel() | |||
|
|||
ctx := context.Background() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
again here, why are we deopping this context?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Because it didn't do anything, it's a context.Background()
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
how will this option get propagated?
Like this: libp2p/go-libp2p#1271 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok, looks good.
No description provided.