sendMsg should have a buffer

This commit is contained in:
vyzo 2018-01-13 21:39:35 +02:00
parent edcb251ad1
commit 473a5d2873
1 changed files with 1 additions and 1 deletions

View File

@ -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{}),