[libp2p] increase semaphore number

Signed-off-by: Leo Chen <leo@harmony.one>
pull/3186/head
Leo Chen 4 years ago
parent 71e9abdcbf
commit ef5ca8aa4c
  1. 2
      node/node.go

@ -370,7 +370,7 @@ func (node *Node) Start() error {
return errors.New("have no topics to listen to")
}
weighted := make([]*semaphore.Weighted, len(allTopics))
const maxMessageHandlers = 2000
const maxMessageHandlers = 4096
ctx := context.Background()
ownID := node.host.GetID()
errChan := make(chan error)

Loading…
Cancel
Save