From ef5ca8aa4c4f2a2bb5368e7a3f79c5d0a3b8164d Mon Sep 17 00:00:00 2001 From: Leo Chen Date: Wed, 24 Jun 2020 02:56:14 +0000 Subject: [PATCH] [libp2p] increase semaphore number Signed-off-by: Leo Chen --- node/node.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/node/node.go b/node/node.go index c19c11ab7..85cd9d677 100644 --- a/node/node.go +++ b/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)