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 555d0d2 commit 2f8707d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/scorper/http/streamserver.nim
Original file line number Diff line number Diff line change
Expand Up @@ -656,7 +656,7 @@ proc defaultErrorHandle(req: ImpRequest, err: ref Exception | HttpError; headers
template tryHandle(req: ImpRequest, fut: untyped, keep: var bool) =
mixin defaultErrorHandle
try:
await chronos.wait(fut, TimeOut.seconds)
await chronos.wait(fut, initDuration(seconds = TimeOut))
except AsyncTimeoutError:
if not req.responded:
let err = newHttpError(408.HttpCode)
Expand Down

0 comments on commit 2f8707d

Please sign in to comment.