Unverified Commit 02f8b1ee authored by Steven Allen's avatar Steven Allen Committed by GitHub

Merge pull request #10 from libp2p/fix/dont-mask-context

don't mask context
parents d13fdefb 0938e5d8
...@@ -44,9 +44,6 @@ func DiscoverNATs(ctx context.Context) <-chan NAT { ...@@ -44,9 +44,6 @@ func DiscoverNATs(ctx context.Context) <-chan NAT {
go func() { go func() {
defer close(nats) defer close(nats)
ctx, cancel := context.WithCancel(context.Background())
defer cancel()
upnpIg1 := discoverUPNP_IG1(ctx) upnpIg1 := discoverUPNP_IG1(ctx)
upnpIg2 := discoverUPNP_IG2(ctx) upnpIg2 := discoverUPNP_IG2(ctx)
natpmp := discoverNATPMP(ctx) natpmp := discoverNATPMP(ctx)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment