mirror of
https://github.com/status-im/nim-eth.git
synced 2025-02-20 09:48:29 +00:00
Fix Windows compilation error.
This commit is contained in:
parent
a6be6426ab
commit
a4c53b4346
@ -9,9 +9,10 @@ proc catchOrQuit(error: Exception) =
|
|||||||
quit 1
|
quit 1
|
||||||
|
|
||||||
proc traceAsyncErrors*(fut: FutureBase) =
|
proc traceAsyncErrors*(fut: FutureBase) =
|
||||||
fut.addCallback do (arg: pointer):
|
proc continuation(arg: pointer) {.gcsafe.} =
|
||||||
if not fut.error.isNil:
|
if not fut.error.isNil:
|
||||||
catchOrQuit fut.error[]
|
catchOrQuit fut.error[]
|
||||||
|
fut.addCallback continuation
|
||||||
|
|
||||||
template traceAwaitErrors*(fut: FutureBase) =
|
template traceAwaitErrors*(fut: FutureBase) =
|
||||||
let f = fut
|
let f = fut
|
||||||
|
Loading…
x
Reference in New Issue
Block a user