Remove the last remains of gensym in the p2pProtocol DSL in order to get non-changing codegen

This commit is contained in:
Zahary Karadjov 2020-05-25 19:41:20 +03:00
parent 218192aa09
commit ff546d27c3
No known key found for this signature in database
GPG Key ID: C8936F8A3073D609
1 changed files with 1 additions and 1 deletions

View File

@ -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,