mirror of
https://github.com/status-im/nim-style-guide.git
synced 2025-02-22 11:08:12 +00:00
chronos 3.2 compat in example (#17)
This commit is contained in:
parent
7b7f790cfa
commit
38645857dc
@ -7,4 +7,4 @@ main-rs: asynclib.nim main.rs
|
||||
rustc main.rs -L. -lasynclib -o main-rs
|
||||
|
||||
prepare:
|
||||
nimble install -y chronos@#master
|
||||
nimble install -y chronos
|
||||
|
@ -42,7 +42,7 @@ proc runContext(args: tuple[ctx: ptr Context, address: cstring]) {.thread.} =
|
||||
|
||||
deallocShared(args.address) # Don't forget to release memory manually!
|
||||
|
||||
proc process(r: RequestFence): Future[HttpResponseRef] {.async.} =
|
||||
proc process(r: RequestFence): Future[HttpResponseRef] {.async.} = return
|
||||
if r.isOk():
|
||||
let
|
||||
req = r.get()
|
||||
|
Loading…
x
Reference in New Issue
Block a user