Fix import and remove warnings

This commit is contained in:
Arnaud 2026-06-03 10:18:11 +04:00
parent 2c493c648e
commit 1c45174c0c
No known key found for this signature in database
GPG Key ID: A6C7C781817146FA
3 changed files with 2 additions and 3 deletions

View File

@ -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

View File

@ -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

View File

@ -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