fix typo / grammar
This commit is contained in:
parent
cfe24f70dc
commit
3fc54cb730
|
@ -51,7 +51,8 @@ proc getRelativeTimeout(ctx: QuicP2PContext): int32 =
|
||||||
if connTimeout < nextTimeout:
|
if connTimeout < nextTimeout:
|
||||||
nextTimeout = connTimeout
|
nextTimeout = connTimeout
|
||||||
if now < nextTimeout:
|
if now < nextTimeout:
|
||||||
# calculate time until nexTimeout convert from microseconds to milliseconds
|
# calculate time until nextTimeout and convert from microseconds to
|
||||||
|
# milliseconds
|
||||||
let delta = (nextTimeout - now) div 1_000
|
let delta = (nextTimeout - now) div 1_000
|
||||||
result = min(delta, int32.high).int32
|
result = min(delta, int32.high).int32
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue