From ff546d27c3e65df806e499a17e1918a545522094 Mon Sep 17 00:00:00 2001 From: Zahary Karadjov Date: Mon, 25 May 2020 19:41:20 +0300 Subject: [PATCH] Remove the last remains of gensym in the p2pProtocol DSL in order to get non-changing codegen --- eth/p2p/p2p_protocol_dsl.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eth/p2p/p2p_protocol_dsl.nim b/eth/p2p/p2p_protocol_dsl.nim index 86066aa..f46825e 100644 --- a/eth/p2p/p2p_protocol_dsl.nim +++ b/eth/p2p/p2p_protocol_dsl.nim @@ -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,