mirror of https://github.com/waku-org/nwaku.git
chore: remove unused imports
This commit is contained in:
parent
5c7baf87e5
commit
993781a137
|
@ -6,7 +6,7 @@ when not(compileOption("threads")):
|
|||
|
||||
{.push raises: [Defect].}
|
||||
|
||||
import std/[tables, strformat, strutils, times, httpclient, json, sequtils, random, options]
|
||||
import std/[tables, strformat, strutils, times, json, options]
|
||||
import confutils, chronicles, chronos, stew/shims/net as stewNet,
|
||||
eth/keys, bearssl, stew/[byteutils, endians2, results],
|
||||
nimcrypto/pbkdf2
|
||||
|
@ -31,8 +31,7 @@ when defined(rln):
|
|||
import
|
||||
libp2p/protocols/pubsub/rpc/messages,
|
||||
libp2p/protocols/pubsub/pubsub,
|
||||
web3,
|
||||
../../waku/v2/protocol/waku_rln_relay/[rln, waku_rln_relay_utils]
|
||||
../../waku/v2/protocol/waku_rln_relay/waku_rln_relay_utils
|
||||
|
||||
const Help = """
|
||||
Commands: /[?|help|connect|nick|exit]
|
||||
|
|
|
@ -25,8 +25,7 @@ import
|
|||
../../waku/v2/protocol/waku_swap/waku_swap,
|
||||
../../waku/v2/protocol/waku_filter/waku_filter,
|
||||
../../waku/v2/utils/peers,
|
||||
../../waku/v2/utils/time,
|
||||
../test_helpers
|
||||
../../waku/v2/utils/time
|
||||
|
||||
template sourceDir*: string = currentSourcePath.rsplit(DirSep, 1)[0]
|
||||
const sigPath = sourceDir / ParDir / ParDir / "waku" / "v2" / "node" / "jsonrpc" / "jsonrpc_callsigs.nim"
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
{.used.}
|
||||
|
||||
import
|
||||
std/[unittest, tables, strutils, os, sequtils],
|
||||
std/[unittest, tables, strutils, os],
|
||||
chronicles,
|
||||
stew/results,
|
||||
../../waku/v2/node/storage/migration/migration_utils
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
{.used.}
|
||||
|
||||
import
|
||||
std/[tables, sequtils],
|
||||
std/tables,
|
||||
chronicles,
|
||||
chronos,
|
||||
testutils/unittests,
|
||||
|
|
|
@ -1,11 +1,10 @@
|
|||
{.used.}
|
||||
import
|
||||
std/[algorithm, options, sequtils],
|
||||
std/[options, sequtils],
|
||||
testutils/unittests, nimcrypto/sha2,
|
||||
libp2p/protobuf/minprotobuf,
|
||||
../../waku/v2/protocol/waku_store/waku_store,
|
||||
../../waku/v2/utils/time,
|
||||
../test_helpers
|
||||
../../waku/v2/utils/time
|
||||
|
||||
|
||||
proc createSampleStoreQueue(s: int): StoreQueueRef =
|
||||
|
|
|
@ -3,8 +3,7 @@
|
|||
import
|
||||
testutils/unittests,
|
||||
../../waku/v2/protocol/waku_message,
|
||||
../../waku/v2/node/waku_payload,
|
||||
../test_helpers
|
||||
../../waku/v2/node/waku_payload
|
||||
|
||||
procSuite "Waku Payload":
|
||||
let rng = newRng()
|
||||
|
|
|
@ -3,14 +3,13 @@
|
|||
|
||||
import
|
||||
std/options, sequtils, times,
|
||||
testutils/unittests, chronos, chronicles, stint, web3,
|
||||
testutils/unittests, chronos, chronicles, stint,
|
||||
stew/byteutils, stew/shims/net as stewNet,
|
||||
libp2p/crypto/crypto,
|
||||
../../waku/v2/protocol/waku_rln_relay/[rln, waku_rln_relay_utils,
|
||||
waku_rln_relay_types],
|
||||
../../waku/v2/node/wakunode2,
|
||||
../test_helpers,
|
||||
./test_utils
|
||||
../test_helpers
|
||||
|
||||
const RLNRELAY_PUBSUB_TOPIC = "waku/2/rlnrelay/proto"
|
||||
const RLNRELAY_CONTENT_TOPIC = "waku/2/rlnrelay/proto"
|
||||
|
|
|
@ -2,7 +2,6 @@
|
|||
|
||||
import
|
||||
testutils/unittests,
|
||||
std/sequtils,
|
||||
chronicles, chronos, stew/shims/net as stewNet, stew/byteutils, std/os,
|
||||
libp2p/crypto/crypto,
|
||||
libp2p/crypto/secp,
|
||||
|
@ -23,10 +22,10 @@ import
|
|||
../../waku/v2/node/peer_manager/peer_manager,
|
||||
../../waku/v2/utils/peers,
|
||||
../../waku/v2/utils/time,
|
||||
../../waku/v2/node/wakunode2,
|
||||
../test_helpers
|
||||
../../waku/v2/node/wakunode2
|
||||
|
||||
when defined(rln):
|
||||
import std/sequtils
|
||||
import
|
||||
../../waku/v2/protocol/waku_rln_relay/[waku_rln_relay_utils, waku_rln_relay_types]
|
||||
from times import epochTime
|
||||
|
|
|
@ -323,7 +323,6 @@ when isMainModule:
|
|||
../v1/node/rpc/wakusim,
|
||||
../v1/node/rpc/waku,
|
||||
../v1/node/rpc/key_storage,
|
||||
../v1/node/waku_helpers,
|
||||
../v2/node/jsonrpc/[debug_api,
|
||||
filter_api,
|
||||
relay_api,
|
||||
|
|
|
@ -8,7 +8,6 @@ import
|
|||
libp2p/crypto/secp,
|
||||
nimcrypto/utils,
|
||||
eth/keys,
|
||||
web3,
|
||||
../protocol/waku_rln_relay/waku_rln_relay_types,
|
||||
../protocol/waku_message
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
{.push raises: [Defect].}
|
||||
|
||||
import
|
||||
std/[sequtils, strutils, options],
|
||||
std/[strutils, options],
|
||||
chronos, chronicles, metrics,
|
||||
eth/keys,
|
||||
eth/p2p/discoveryv5/[enr, node, protocol],
|
||||
|
|
|
@ -21,7 +21,6 @@ import
|
|||
../protocol/waku_lightpush/waku_lightpush,
|
||||
../protocol/waku_rln_relay/[waku_rln_relay_types],
|
||||
../utils/[peers, requests, wakuswitch, wakuenr],
|
||||
./storage/migration/migration_types,
|
||||
./peer_manager/peer_manager,
|
||||
./dnsdisc/waku_dnsdisc,
|
||||
./discv5/waku_discv5,
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
# Group by std, external then internal imports
|
||||
import
|
||||
# std imports
|
||||
std/[tables, times, sequtils, algorithm, options, math],
|
||||
std/[tables, times, sequtils, options, math],
|
||||
# external imports
|
||||
bearssl,
|
||||
chronicles,
|
||||
|
|
|
@ -1,13 +1,11 @@
|
|||
# Waku Switch utils.
|
||||
{.push raises: [TLSStreamProtocolError, IOError, Defect].}
|
||||
import
|
||||
std/[options, sequtils, strutils],
|
||||
std/options,
|
||||
chronos, chronicles,
|
||||
stew/byteutils,
|
||||
eth/keys,
|
||||
libp2p/crypto/crypto,
|
||||
libp2p/protocols/pubsub/gossipsub,
|
||||
libp2p/nameresolving/dnsresolver,
|
||||
libp2p/nameresolving/nameresolver,
|
||||
libp2p/builders,
|
||||
libp2p/transports/[transport, tcptransport, wstransport]
|
||||
|
|
Loading…
Reference in New Issue