From 0317d589cefe72ae7bb136409a700783122986ae Mon Sep 17 00:00:00 2001 From: Diego Date: Tue, 6 Feb 2024 14:18:00 +0100 Subject: [PATCH] remove unnecessary change --- libp2p/errors.nim | 4 ++-- libp2p/protocols/pubsub/pubsubpeer.nim | 3 +-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/libp2p/errors.nim b/libp2p/errors.nim index 4f52ce1c1e..e7da7094da 100644 --- a/libp2p/errors.nim +++ b/libp2p/errors.nim @@ -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*[F: FutureBase](args: varargs[F]): Future[void] = - var futs: seq[F] +proc allFuturesThrowing*[T](args: varargs[Future[T]]): Future[void] = + var futs: seq[Future[T]] for fut in args: futs &= fut proc call() {.async.} = diff --git a/libp2p/protocols/pubsub/pubsubpeer.nim b/libp2p/protocols/pubsub/pubsubpeer.nim index ab3d9070e8..a0dcf925c9 100644 --- a/libp2p/protocols/pubsub/pubsubpeer.nim +++ b/libp2p/protocols/pubsub/pubsubpeer.nim @@ -19,8 +19,7 @@ import rpc/[messages, message, protobuf], ../../stream/connection, ../../crypto/crypto, ../../protobuf/minprotobuf, - ../../utility, - ../../utils/future + ../../utility export peerid, connection, deques