We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
LPProtocol.new
LPProtocol()
1 parent 3d45c05 commit d249e75Copy full SHA for d249e75
beacon_chain/networking/eth2_network.nim
@@ -2013,7 +2013,8 @@ proc p2pProtocolBackendImpl*(p: P2PProtocol): Backend =
2013
2014
try:
2015
mount `networkVar`.switch,
2016
- LPProtocol(codecs: @[`codecNameLit`], handler: snappyThunk)
+ LPProtocol.new(
2017
+ codecs = @[`codecNameLit`], handler = snappyThunk)
2018
except LPError as exc:
2019
# Failure here indicates that the mounting was done incorrectly which
2020
# would be a programming error
0 commit comments