fix dangling maxConcurrency reference
This commit is contained in:
parent
88274db0bb
commit
4241241031
|
@ -116,7 +116,7 @@ func NewFloodSub(ctx context.Context, h host.Host, opts ...Option) (*PubSub, err
|
|||
peers: make(map[peer.ID]chan *RPC),
|
||||
seenMessages: timecache.NewTimeCache(time.Second * 30),
|
||||
counter: uint64(time.Now().UnixNano()),
|
||||
throttleValidate: make(chan struct{}, maxConcurrency),
|
||||
throttleValidate: make(chan struct{}, defaultMaxConcurrency),
|
||||
}
|
||||
|
||||
for _, opt := range opts {
|
||||
|
|
Loading…
Reference in New Issue