Skip to content
This repository has been archived by the owner on May 11, 2022. It is now read-only.

Commit

Permalink
mutex hat
Browse files Browse the repository at this point in the history
  • Loading branch information
vyzo committed May 11, 2018
1 parent bb5cad4 commit cd7a875
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions autonat.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,13 @@ type AutoNAT interface {
}

type AmbientAutoNAT struct {
ctx context.Context
host host.Host
ctx context.Context
host host.Host

mx sync.Mutex
peers map[peer.ID]struct{}
status NATStatus
addr ma.Multiaddr
mx sync.Mutex
}

func NewAutoNAT(ctx context.Context, h host.Host) AutoNAT {
Expand Down

0 comments on commit cd7a875

Please sign in to comment.