Skip to content

Commit

Permalink
Merge pull request #10 from libp2p/fix/dont-mask-context
Browse files Browse the repository at this point in the history
don't mask context
  • Loading branch information
Steven Allen authored May 3, 2019
2 parents d13fdef + 0938e5d commit 02f8b1e
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions nat.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,6 @@ func DiscoverNATs(ctx context.Context) <-chan NAT {
go func() {
defer close(nats)

ctx, cancel := context.WithCancel(context.Background())
defer cancel()

upnpIg1 := discoverUPNP_IG1(ctx)
upnpIg2 := discoverUPNP_IG2(ctx)
natpmp := discoverNATPMP(ctx)
Expand Down

0 comments on commit 02f8b1e

Please sign in to comment.