From 32f7babf872dbbb3f35e1f82dde416e44694e04e Mon Sep 17 00:00:00 2001 From: Jae Kwon Date: Tue, 5 May 2015 17:03:11 -0700 Subject: [PATCH] boost sendQueue for votes --- consensus/reactor.go | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/consensus/reactor.go b/consensus/reactor.go index 8a1029ff1..5ab2719f7 100644 --- a/consensus/reactor.go +++ b/consensus/reactor.go @@ -84,16 +84,19 @@ func (conR *ConsensusReactor) GetChannels() []*p2p.ChannelDescriptor { // TODO optimize return []*p2p.ChannelDescriptor{ &p2p.ChannelDescriptor{ - Id: StateChannel, - Priority: 5, + Id: StateChannel, + Priority: 5, + SendQueueCapacity: 100, }, &p2p.ChannelDescriptor{ - Id: DataChannel, - Priority: 5, + Id: DataChannel, + Priority: 5, + SendQueueCapacity: 2, }, &p2p.ChannelDescriptor{ - Id: VoteChannel, - Priority: 5, + Id: VoteChannel, + Priority: 5, + SendQueueCapacity: 40, }, } }