Browse Source

raise activation channel capacity to 16

pull/585/head
vyzo 6 years ago
parent
commit
efdc140264
  1. 2
      p2p/protocol/identify/obsaddr.go

2
p2p/protocol/identify/obsaddr.go

@ -67,7 +67,7 @@ func NewObservedAddrSet(ctx context.Context) *ObservedAddrSet {
oas := &ObservedAddrSet{
addrs: make(map[string][]*ObservedAddr),
ttl: pstore.OwnObservedAddrTTL,
wch: make(chan newObservation, 1),
wch: make(chan newObservation, 16),
}
go oas.worker(ctx)
return oas

Loading…
Cancel
Save