enhancement/unused-import-cleanup (#322)

This commit is contained in:
Hanno Cornelius 2020-12-21 11:14:51 +02:00 committed by GitHub
parent f6e80f9ee2
commit f0636bcd9d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
9 changed files with 8 additions and 16 deletions

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -1,7 +1,7 @@
## Types for waku_store protocol.
import
bearssl, stew/[byteutils, endians2],
bearssl,
libp2p/[switch, peerinfo],
libp2p/protocols/protocol,
../../waku_types,

View File

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