mirror of https://github.com/status-im/nim-eth.git
Remove the last remains of gensym in the p2pProtocol DSL in order to get non-changing codegen
This commit is contained in:
parent
218192aa09
commit
ff546d27c3
|
@ -951,7 +951,7 @@ proc genCode*(p: P2PProtocol): NimNode =
|
|||
|
||||
# The protocol run-time data is available as a pseudo-field
|
||||
# (e.g. `p2p.protocolInfo`)
|
||||
template protocolInfo*(P: type `protocolName`): auto = `protocolInfoVar`
|
||||
template protocolInfo*(`PROTO`: type `protocolName`): auto = `protocolInfoVar`
|
||||
|
||||
result.add p.outSendProcs,
|
||||
p.outRecvProcs,
|
||||
|
|
Loading…
Reference in New Issue