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 11:45:12 -04:00
committed by GitHub
parent 66a11fe527
commit f4a56f4034
13 changed files with 17 additions and 36 deletions

View File

@@ -1119,7 +1119,7 @@ func makeChannelsFromShims(
channels := map[p2p.ChannelID]*p2p.Channel{}
for chID, chShim := range chShims {
ch, err := router.OpenChannel(*chShim.Descriptor, chShim.MsgType, chShim.Descriptor.RecvBufferCapacity)
ch, err := router.OpenChannel(*chShim.Descriptor, chShim.Descriptor.MessageType, chShim.Descriptor.RecvBufferCapacity)
if err != nil {
panic(fmt.Sprintf("failed to open channel %v: %v", chID, err))
}