mirror of
https://github.com/codex-storage/nim-libp2p.git
synced 2025-01-12 03:54:06 +00:00
fix "future" typo
This commit is contained in:
parent
4447d97234
commit
536555138c
@ -19,7 +19,7 @@ macro checkFutures*[T](futs: seq[Future[T]], exclude: untyped = []): untyped =
|
|||||||
if res.failed:
|
if res.failed:
|
||||||
let exc = res.readError()
|
let exc = res.readError()
|
||||||
# We still don't abort but warn
|
# We still don't abort but warn
|
||||||
warn "A feature has failed, enable trace logging for details", error=exc.name
|
warn "A future has failed, enable trace logging for details", error=exc.name
|
||||||
trace "Exception message", msg=exc.msg
|
trace "Exception message", msg=exc.msg
|
||||||
else:
|
else:
|
||||||
quote do:
|
quote do:
|
||||||
@ -29,10 +29,10 @@ macro checkFutures*[T](futs: seq[Future[T]], exclude: untyped = []): untyped =
|
|||||||
let exc = res.readError()
|
let exc = res.readError()
|
||||||
for i in 0..<`nexclude`:
|
for i in 0..<`nexclude`:
|
||||||
if exc of `exclude`[i]:
|
if exc of `exclude`[i]:
|
||||||
trace "A feature has failed", error=exc.name, msg=exc.msg
|
trace "A future has failed", error=exc.name, msg=exc.msg
|
||||||
break check
|
break check
|
||||||
# We still don't abort but warn
|
# We still don't abort but warn
|
||||||
warn "A feature has failed, enable trace logging for details", error=exc.name
|
warn "A future has failed, enable trace logging for details", error=exc.name
|
||||||
trace "Exception details", msg=exc.msg
|
trace "Exception details", msg=exc.msg
|
||||||
|
|
||||||
proc allFuturesThrowing*[T](args: varargs[Future[T]]): Future[void] =
|
proc allFuturesThrowing*[T](args: varargs[Future[T]]): Future[void] =
|
||||||
|
Loading…
x
Reference in New Issue
Block a user