p2p: refactor channel description (#7130)

This is another small sliver of #7075, with the intention of removing
the legacy shim layer related to channel registration.
This commit is contained in:
Sam Kleinman
2021-10-15 15:45:12 +00:00
committed by GitHub
parent 66a11fe527
commit f4a56f4034
13 changed files with 17 additions and 36 deletions
+1 -2
View File
@@ -29,14 +29,13 @@ var (
// ref: https://github.com/tendermint/tendermint/issues/5670
ChannelShims = map[p2p.ChannelID]*p2p.ChannelDescriptorShim{
BlockSyncChannel: {
MsgType: new(bcproto.Message),
Descriptor: &p2p.ChannelDescriptor{
ID: byte(BlockSyncChannel),
MessageType: new(bcproto.Message),
Priority: 5,
SendQueueCapacity: 1000,
RecvBufferCapacity: 1024,
RecvMessageCapacity: MaxMsgSize,
MaxSendBytes: 100,
},
},
}