From 1c45174c0c837e5e0f61b52863e50920f4221a5a Mon Sep 17 00:00:00 2001 From: Arnaud Date: Wed, 3 Jun 2026 10:18:11 +0400 Subject: [PATCH] Fix import and remove warnings --- .../storage_thread_requests/requests/node_lifecycle_request.nim | 2 +- storage/conf.nim | 1 - storage/streams/asyncstreamwrapper.nim | 2 +- 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/library/storage_thread_requests/requests/node_lifecycle_request.nim b/library/storage_thread_requests/requests/node_lifecycle_request.nim index 105fc285..cccfd3fb 100644 --- a/library/storage_thread_requests/requests/node_lifecycle_request.nim +++ b/library/storage_thread_requests/requests/node_lifecycle_request.nim @@ -13,7 +13,7 @@ import results import confutils import confutils/std/net import confutils/defs -import libp2p +import libp2p except NATConfig import json_serialization import json_serialization/std/[options, net] import ../../alloc diff --git a/storage/conf.nim b/storage/conf.nim index 49f84f08..2937bad4 100644 --- a/storage/conf.nim +++ b/storage/conf.nim @@ -33,7 +33,6 @@ import pkg/stew/byteutils import pkg/libp2p except NATConfig import pkg/questionable import pkg/questionable/results -import pkg/stew/base64 import ./storagetypes import ./discovery diff --git a/storage/streams/asyncstreamwrapper.nim b/storage/streams/asyncstreamwrapper.nim index f80c0696..e37c7df6 100644 --- a/storage/streams/asyncstreamwrapper.nim +++ b/storage/streams/asyncstreamwrapper.nim @@ -79,7 +79,7 @@ proc completeWrite( await fut method write*( - self: AsyncStreamWrapper, msg: seq[byte] + self: AsyncStreamWrapper, msg: sink seq[byte] ): Future[void] {.async: (raises: [CancelledError, LPStreamError], raw: true).} = # Avoid a copy of msg being kept in the closure created by `{.async.}` as this # drives up memory usage