mirror of
https://github.com/logos-messaging/logos-messaging-nim.git
synced 2026-01-08 00:43:06 +00:00
enhancement/unused-import-cleanup (#322)
This commit is contained in:
parent
f6e80f9ee2
commit
f0636bcd9d
@ -6,7 +6,6 @@ import confutils, chronicles, chronos, stew/shims/net as stewNet,
|
||||
eth/keys, bearssl, stew/[byteutils, endians2],
|
||||
nimcrypto/pbkdf2
|
||||
import libp2p/[switch, # manage transports, a single entry point for dialing and listening
|
||||
multistream, # tag stream with short header to identify it
|
||||
crypto/crypto, # cryptographic functions
|
||||
protocols/identify, # identify the peer info of a peer
|
||||
stream/connection, # create and close stream read / write connections
|
||||
|
||||
@ -6,15 +6,10 @@ import
|
||||
libp2p/stream/[bufferstream, connection],
|
||||
libp2p/crypto/[crypto, secp],
|
||||
libp2p/switch,
|
||||
libp2p/protocols/pubsub/rpc/message,
|
||||
libp2p/multistream,
|
||||
libp2p/transports/transport,
|
||||
libp2p/transports/tcptransport,
|
||||
eth/keys,
|
||||
../../waku/v2/protocol/[message_notifier],
|
||||
../../waku/v2/protocol/waku_store/waku_store,
|
||||
../../waku/v2/protocol/waku_swap/waku_swap,
|
||||
../../waku/v2/node/message_store,
|
||||
../../waku/v2/node/wakunode2,
|
||||
../test_helpers, ./utils,
|
||||
../../waku/v2/waku_types
|
||||
|
||||
@ -7,7 +7,7 @@ import
|
||||
eth/p2p/[enode, whispernodes],
|
||||
../v1/protocol/waku_protocol,
|
||||
./utils/nat,
|
||||
../v1/node/rpc/[waku, wakusim, key_storage],
|
||||
../v1/node/rpc/wakusim,
|
||||
../v1/node/waku_helpers,
|
||||
# Waku v2 imports
|
||||
libp2p/crypto/crypto,
|
||||
|
||||
@ -9,7 +9,7 @@ import
|
||||
../../protocol/waku_swap/[waku_swap_types, waku_swap],
|
||||
../../protocol/waku_filter,
|
||||
../wakunode2,
|
||||
./jsonrpc_types, ./jsonrpc_utils
|
||||
./jsonrpc_types
|
||||
|
||||
proc constructMultiaddrStr*(peerInfo: PeerInfo): string =
|
||||
# Constructs a multiaddress with both location address and p2p identity
|
||||
|
||||
@ -1,7 +1,6 @@
|
||||
import
|
||||
os,
|
||||
sqlite3_abi,
|
||||
chronos, chronicles, metrics, stew/results,
|
||||
chronos, metrics, stew/results,
|
||||
libp2p/crypto/crypto,
|
||||
libp2p/protocols/protocol,
|
||||
libp2p/protobuf/minprotobuf,
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
import
|
||||
os, strutils, strformat, chronicles, json_rpc/[rpcclient, rpcserver], nimcrypto/sysrand,
|
||||
os, strutils, chronicles, json_rpc/[rpcclient, rpcserver],
|
||||
libp2p/protobuf/minprotobuf,
|
||||
eth/common as eth_common, eth/keys,
|
||||
options
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
import
|
||||
strformat, os, osproc, net, confutils, strformat, chronicles, json,
|
||||
strformat, os, osproc, net, strformat, chronicles, json,
|
||||
libp2p/multiaddress,
|
||||
libp2p/crypto/crypto,
|
||||
libp2p/crypto/secp,
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
## Types for waku_store protocol.
|
||||
|
||||
import
|
||||
bearssl, stew/[byteutils, endians2],
|
||||
bearssl,
|
||||
libp2p/[switch, peerinfo],
|
||||
libp2p/protocols/protocol,
|
||||
../../waku_types,
|
||||
|
||||
@ -3,15 +3,14 @@
|
||||
## TODO Move types here into their appropriate place
|
||||
|
||||
import
|
||||
std/[tables, times],
|
||||
chronos, bearssl, stew/[byteutils, endians2],
|
||||
std/tables,
|
||||
chronos, bearssl, stew/byteutils,
|
||||
libp2p/[switch, peerinfo, multiaddress, crypto/crypto],
|
||||
libp2p/protobuf/minprotobuf,
|
||||
libp2p/protocols/protocol,
|
||||
libp2p/switch,
|
||||
libp2p/stream/connection,
|
||||
libp2p/protocols/pubsub/[pubsub, gossipsub],
|
||||
protocol/waku_swap/waku_swap_types,
|
||||
nimcrypto/sha2,
|
||||
./node/sqlite
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user