Skip to content

Commit

Permalink
o
Browse files Browse the repository at this point in the history
  • Loading branch information
bung87 committed May 28, 2023
1 parent 7dfdb07 commit 555d0d2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/scorper/http/streamserver.nim
Original file line number Diff line number Diff line change
Expand Up @@ -654,6 +654,7 @@ proc defaultErrorHandle(req: ImpRequest, err: ref Exception | HttpError; headers
await req.respError(Http400, err.msg, headers)

template tryHandle(req: ImpRequest, fut: untyped, keep: var bool) =
mixin defaultErrorHandle
try:
await chronos.wait(fut, TimeOut.seconds)
except AsyncTimeoutError:
Expand Down

0 comments on commit 555d0d2

Please sign in to comment.