mirror of
https://github.com/status-im/nim-libp2p.git
synced 2025-01-24 03:39:15 +00:00
fix: allFuturesThrowing compilation issue on daily (#1026)
This commit is contained in:
parent
c5e4f8e12d
commit
7faa0fac23
@ -45,8 +45,8 @@ macro checkFutures*[F](futs: seq[F], exclude: untyped = []): untyped =
|
||||
debug "A future has failed, enable trace logging for details", error=exc.name
|
||||
trace "Exception details", msg=exc.msg
|
||||
|
||||
proc allFuturesThrowing*[T](args: varargs[Future[T]]): Future[void] =
|
||||
var futs: seq[Future[T]]
|
||||
proc allFuturesThrowing*[F: FutureBase](args: varargs[F]): Future[void] =
|
||||
var futs: seq[F]
|
||||
for fut in args:
|
||||
futs &= fut
|
||||
proc call() {.async.} =
|
||||
|
Loading…
x
Reference in New Issue
Block a user