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 c43099a commit babaa0f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/scorper/http/streamserver.nim
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ include constant
import std / [os, streams, options, strformat, json, sequtils, parseutils, strutils, macros, macrocache]
import ./ rxnim / rxnim
import segfaults
from std/times import Time, parseTime, utc, `<`, now, `$`, initDuration
from std/times import Time, parseTime, utc, `<`, now, `$`
import zippy
from httprequest import Request
import ../ scorpermacros
Expand Down 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, initDuration(seconds = TimeOut))
await chronos.wait(fut, chronos.seconds(TimeOut))
except AsyncTimeoutError:
if not req.responded:
let err = newHttpError(408.HttpCode)
Expand Down

0 comments on commit babaa0f

Please sign in to comment.