p2p: reduce buffering on channels (#6609)

Having smaller buffers in each reactor/channel will mean that there will be fewer stale messages.
This commit is contained in:
Sam Kleinman
2021-06-24 16:38:35 -04:00
committed by GitHub
parent 10d174adcc
commit 917180dfd2
10 changed files with 36 additions and 43 deletions

View File

@@ -698,7 +698,7 @@ func createPEXReactorV2(
router *p2p.Router,
) (*pex.ReactorV2, error) {
channel, err := router.OpenChannel(pex.ChannelDescriptor(), &protop2p.PexMessage{}, 4096)
channel, err := router.OpenChannel(pex.ChannelDescriptor(), &protop2p.PexMessage{}, 128)
if err != nil {
return nil, err
}