Fix regression in RLPx

This commit is contained in:
Zahary Karadjov 2019-12-09 23:14:11 +02:00
parent 3f721e7ef6
commit 5bd7baaf9c
No known key found for this signature in database
GPG Key ID: C8936F8A3073D609
1 changed files with 2 additions and 1 deletions

View File

@ -649,7 +649,8 @@ proc genUserHandlerCall*(msg: Message, receivedMsg: NimNode,
proc genAwaitUserHandler*(msg: Message, receivedMsg: NimNode, proc genAwaitUserHandler*(msg: Message, receivedMsg: NimNode,
leadingParams: varargs[NimNode]): NimNode = leadingParams: varargs[NimNode]): NimNode =
return newCall("await", msg.genUserHandlerCall(receivedMsg, leadingParams)) result = msg.genUserHandlerCall(receivedMsg, leadingParams)
if result.len > 0: result = newCall("await", result)
proc appendAllParams*(node: NimNode, procDef: NimNode, skipFirst = 0): NimNode = proc appendAllParams*(node: NimNode, procDef: NimNode, skipFirst = 0): NimNode =
result = node result = node