chronos 3.2 compat in example (#17)

This commit is contained in:
Jacek Sieka 2023-06-26 14:53:16 +02:00 committed by GitHub
parent 7b7f790cfa
commit 38645857dc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

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

View File

@ -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()