sendMsg should have a buffer
This commit is contained in:
parent
edcb251ad1
commit
473a5d2873
|
@ -104,7 +104,7 @@ func NewFloodSub(ctx context.Context, h host.Host, opts ...Option) (*PubSub, err
|
||||||
getPeers: make(chan *listPeerReq),
|
getPeers: make(chan *listPeerReq),
|
||||||
addSub: make(chan *addSubReq),
|
addSub: make(chan *addSubReq),
|
||||||
getTopics: make(chan *topicReq),
|
getTopics: make(chan *topicReq),
|
||||||
sendMsg: make(chan *sendReq),
|
sendMsg: make(chan *sendReq, 32),
|
||||||
validateThrottle: make(chan struct{}, defaultValidateThrottle),
|
validateThrottle: make(chan struct{}, defaultValidateThrottle),
|
||||||
myTopics: make(map[string]map[*Subscription]struct{}),
|
myTopics: make(map[string]map[*Subscription]struct{}),
|
||||||
topics: make(map[string]map[peer.ID]struct{}),
|
topics: make(map[string]map[peer.ID]struct{}),
|
||||||
|
|
Loading…
Reference in New Issue