mirror of
https://github.com/logos-storage/logos-storage-nim.git
synced 2026-08-04 07:53:12 +00:00
Fix import and remove warnings
This commit is contained in:
parent
2c493c648e
commit
1c45174c0c
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user