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