mirror of https://github.com/waku-org/nwaku.git
chore: remove all pre-nim-1.6 deadcode from codebase (#2857)
This commit is contained in:
parent
092add1ca2
commit
9bd8c33aee
|
@ -4,10 +4,7 @@
|
||||||
when not (compileOption("threads")):
|
when not (compileOption("threads")):
|
||||||
{.fatal: "Please, compile this program with the --threads:on option!".}
|
{.fatal: "Please, compile this program with the --threads:on option!".}
|
||||||
|
|
||||||
when (NimMajor, NimMinor) < (1, 4):
|
{.push raises: [].}
|
||||||
{.push raises: [Defect].}
|
|
||||||
else:
|
|
||||||
{.push raises: [].}
|
|
||||||
|
|
||||||
import std/[strformat, strutils, times, options, random]
|
import std/[strformat, strutils, times, options, random]
|
||||||
import
|
import
|
||||||
|
|
|
@ -1,7 +1,4 @@
|
||||||
when (NimMajor, NimMinor) < (1, 4):
|
{.push raises: [].}
|
||||||
{.push raises: [Defect].}
|
|
||||||
else:
|
|
||||||
{.push raises: [].}
|
|
||||||
|
|
||||||
import
|
import
|
||||||
std/[tables, times, strutils, hashes, sequtils],
|
std/[tables, times, strutils, hashes, sequtils],
|
||||||
|
|
|
@ -1,7 +1,4 @@
|
||||||
when (NimMajor, NimMinor) < (1, 4):
|
{.push raises: [].}
|
||||||
{.push raises: [Defect].}
|
|
||||||
else:
|
|
||||||
{.push raises: [].}
|
|
||||||
|
|
||||||
import
|
import
|
||||||
std/[options, strutils, os, sequtils, net],
|
std/[options, strutils, os, sequtils, net],
|
||||||
|
|
|
@ -1,7 +1,4 @@
|
||||||
when (NimMajor, NimMinor) < (1, 4):
|
{.push raises: [].}
|
||||||
{.push raises: [Defect].}
|
|
||||||
else:
|
|
||||||
{.push raises: [].}
|
|
||||||
|
|
||||||
import
|
import
|
||||||
std/[sets, tables, strutils, sequtils, options, strformat],
|
std/[sets, tables, strutils, sequtils, options, strformat],
|
||||||
|
|
|
@ -1,7 +1,4 @@
|
||||||
when (NimMajor, NimMinor) < (1, 4):
|
{.push raises: [].}
|
||||||
{.push raises: [Defect].}
|
|
||||||
else:
|
|
||||||
{.push raises: [].}
|
|
||||||
|
|
||||||
import
|
import
|
||||||
chronicles,
|
chronicles,
|
||||||
|
|
|
@ -1,7 +1,4 @@
|
||||||
when (NimMajor, NimMinor) < (1, 4):
|
{.push raises: [].}
|
||||||
{.push raises: [Defect].}
|
|
||||||
else:
|
|
||||||
{.push raises: [].}
|
|
||||||
|
|
||||||
import
|
import
|
||||||
std/[tables, strutils, times, sequtils, random],
|
std/[tables, strutils, times, sequtils, random],
|
||||||
|
|
|
@ -1,7 +1,4 @@
|
||||||
when (NimMajor, NimMinor) < (1, 4):
|
{.push raises: [].}
|
||||||
{.push raises: [Defect].}
|
|
||||||
else:
|
|
||||||
{.push raises: [].}
|
|
||||||
|
|
||||||
import
|
import
|
||||||
std/[json, tables, sequtils],
|
std/[json, tables, sequtils],
|
||||||
|
|
|
@ -1,7 +1,4 @@
|
||||||
when (NimMajor, NimMinor) < (1, 4):
|
{.push raises: [].}
|
||||||
{.push raises: [Defect].}
|
|
||||||
else:
|
|
||||||
{.push raises: [].}
|
|
||||||
|
|
||||||
import
|
import
|
||||||
std/json,
|
std/json,
|
||||||
|
|
|
@ -1,7 +1,4 @@
|
||||||
when (NimMajor, NimMinor) < (1, 4):
|
{.push raises: [].}
|
||||||
{.push raises: [Defect].}
|
|
||||||
else:
|
|
||||||
{.push raises: [].}
|
|
||||||
|
|
||||||
import
|
import
|
||||||
std/[options, strutils, sequtils, net],
|
std/[options, strutils, sequtils, net],
|
||||||
|
|
|
@ -1,8 +1,5 @@
|
||||||
## Nim wrappers for the functions defined in librln
|
## Nim wrappers for the functions defined in librln
|
||||||
when (NimMajor, NimMinor) < (1, 4):
|
{.push raises: [].}
|
||||||
{.push raises: [Defect].}
|
|
||||||
else:
|
|
||||||
{.push raises: [].}
|
|
||||||
|
|
||||||
import stew/results
|
import stew/results
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,4 @@
|
||||||
when (NimMajor, NimMinor) < (1, 4):
|
{.push raises: [].}
|
||||||
{.push raises: [Defect].}
|
|
||||||
else:
|
|
||||||
{.push raises: [].}
|
|
||||||
|
|
||||||
import
|
import
|
||||||
../../waku/common/logging, ../../waku/factory/[waku, networks_config, external_config]
|
../../waku/common/logging, ../../waku/factory/[waku, networks_config, external_config]
|
||||||
|
|
|
@ -1,7 +1,4 @@
|
||||||
when (NimMajor, NimMinor) < (1, 4):
|
{.push raises: [].}
|
||||||
{.push raises: [Defect].}
|
|
||||||
else:
|
|
||||||
{.push raises: [].}
|
|
||||||
|
|
||||||
import
|
import
|
||||||
stew/results,
|
stew/results,
|
||||||
|
|
|
@ -1,7 +1,4 @@
|
||||||
when (NimMajor, NimMinor) < (1, 4):
|
{.push raises: [].}
|
||||||
{.push raises: [Defect].}
|
|
||||||
else:
|
|
||||||
{.push raises: [].}
|
|
||||||
|
|
||||||
import
|
import
|
||||||
stew/results, chronicles, ./node_spec as Waku, ./stealth_commitment_protocol as SCP
|
stew/results, chronicles, ./node_spec as Waku, ./stealth_commitment_protocol as SCP
|
||||||
|
|
|
@ -1,9 +1,6 @@
|
||||||
{.used.}
|
{.used.}
|
||||||
|
|
||||||
when (NimMajor, NimMinor) < (1, 4):
|
{.push raises: [].}
|
||||||
{.push raises: [Defect].}
|
|
||||||
else:
|
|
||||||
{.push raises: [].}
|
|
||||||
|
|
||||||
import
|
import
|
||||||
std/[options, os, osproc, sequtils, deques, streams, strutils, tempfiles, strformat],
|
std/[options, os, osproc, sequtils, deques, streams, strutils, tempfiles, strformat],
|
||||||
|
|
|
@ -1,9 +1,6 @@
|
||||||
{.used.}
|
{.used.}
|
||||||
|
|
||||||
when (NimMajor, NimMinor) < (1, 4):
|
{.push raises: [].}
|
||||||
{.push raises: [Defect].}
|
|
||||||
else:
|
|
||||||
{.push raises: [].}
|
|
||||||
|
|
||||||
import
|
import
|
||||||
testutils/unittests,
|
testutils/unittests,
|
||||||
|
|
|
@ -1,9 +1,6 @@
|
||||||
{.used.}
|
{.used.}
|
||||||
|
|
||||||
when (NimMajor, NimMinor) < (1, 4):
|
{.push raises: [].}
|
||||||
{.push raises: [Defect].}
|
|
||||||
else:
|
|
||||||
{.push raises: [].}
|
|
||||||
|
|
||||||
import
|
import
|
||||||
./rln/waku_rln_relay_utils,
|
./rln/waku_rln_relay_utils,
|
||||||
|
|
|
@ -1,7 +1,4 @@
|
||||||
when (NimMajor, NimMinor) < (1, 4):
|
{.push raises: [].}
|
||||||
{.push raises: [Defect].}
|
|
||||||
else:
|
|
||||||
{.push raises: [].}
|
|
||||||
|
|
||||||
import stew/[results, byteutils, base64]
|
import stew/[results, byteutils, base64]
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,4 @@
|
||||||
when (NimMajor, NimMinor) < (1, 4):
|
{.push raises: [].}
|
||||||
{.push raises: [Defect].}
|
|
||||||
else:
|
|
||||||
{.push raises: [].}
|
|
||||||
|
|
||||||
import confutils/defs as confutilsDefs
|
import confutils/defs as confutilsDefs
|
||||||
import ../../envvar_serialization
|
import ../../envvar_serialization
|
||||||
|
|
|
@ -1,7 +1,4 @@
|
||||||
when (NimMajor, NimMinor) < (1, 4):
|
{.push raises: [].}
|
||||||
{.push raises: [Defect].}
|
|
||||||
else:
|
|
||||||
{.push raises: [].}
|
|
||||||
|
|
||||||
import std/[strutils, net]
|
import std/[strutils, net]
|
||||||
import ../../../envvar_serialization
|
import ../../../envvar_serialization
|
||||||
|
|
|
@ -1,9 +1,6 @@
|
||||||
# Simple async pool driver for postgress.
|
# Simple async pool driver for postgress.
|
||||||
# Inspired by: https://github.com/treeform/pg/
|
# Inspired by: https://github.com/treeform/pg/
|
||||||
when (NimMajor, NimMinor) < (1, 4):
|
{.push raises: [].}
|
||||||
{.push raises: [Defect].}
|
|
||||||
else:
|
|
||||||
{.push raises: [].}
|
|
||||||
|
|
||||||
import std/[sequtils, nre, strformat, sets], stew/results, chronos
|
import std/[sequtils, nre, strformat, sets], stew/results, chronos
|
||||||
import ./dbconn, ../common
|
import ./dbconn, ../common
|
||||||
|
|
|
@ -1,7 +1,4 @@
|
||||||
when (NimMajor, NimMinor) < (1, 4):
|
{.push raises: [].}
|
||||||
{.push raises: [Defect].}
|
|
||||||
else:
|
|
||||||
{.push raises: [].}
|
|
||||||
|
|
||||||
import
|
import
|
||||||
std/[options, net],
|
std/[options, net],
|
||||||
|
|
|
@ -1,7 +1,4 @@
|
||||||
when (NimMajor, NimMinor) < (1, 4):
|
{.push raises: [].}
|
||||||
{.push raises: [Defect].}
|
|
||||||
else:
|
|
||||||
{.push raises: [].}
|
|
||||||
|
|
||||||
import
|
import
|
||||||
std/options, stew/results, eth/keys as eth_keys, libp2p/crypto/crypto as libp2p_crypto
|
std/options, stew/results, eth/keys as eth_keys, libp2p/crypto/crypto as libp2p_crypto
|
||||||
|
|
|
@ -1,7 +1,4 @@
|
||||||
when (NimMajor, NimMinor) < (1, 4):
|
{.push raises: [].}
|
||||||
{.push raises: [Defect].}
|
|
||||||
else:
|
|
||||||
{.push raises: [].}
|
|
||||||
|
|
||||||
import stew/shims/macros, serialization
|
import stew/shims/macros, serialization
|
||||||
import ./envvar_serialization/reader, ./envvar_serialization/writer
|
import ./envvar_serialization/reader, ./envvar_serialization/writer
|
||||||
|
|
|
@ -1,7 +1,4 @@
|
||||||
when (NimMajor, NimMinor) < (1, 4):
|
{.push raises: [].}
|
||||||
{.push raises: [Defect].}
|
|
||||||
else:
|
|
||||||
{.push raises: [].}
|
|
||||||
|
|
||||||
import
|
import
|
||||||
std/[tables, typetraits, options, os],
|
std/[tables, typetraits, options, os],
|
||||||
|
|
|
@ -1,7 +1,4 @@
|
||||||
when (NimMajor, NimMinor) < (1, 4):
|
{.push raises: [].}
|
||||||
{.push raises: [Defect].}
|
|
||||||
else:
|
|
||||||
{.push raises: [].}
|
|
||||||
|
|
||||||
import std/[os, strutils], stew/byteutils, stew/ptrops
|
import std/[os, strutils], stew/byteutils, stew/ptrops
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,4 @@
|
||||||
when (NimMajor, NimMinor) < (1, 4):
|
{.push raises: [].}
|
||||||
{.push raises: [Defect].}
|
|
||||||
else:
|
|
||||||
{.push raises: [].}
|
|
||||||
|
|
||||||
type
|
type
|
||||||
HexDataStr* = distinct string
|
HexDataStr* = distinct string
|
||||||
|
|
|
@ -8,10 +8,7 @@ import
|
||||||
|
|
||||||
export chronicles.LogLevel
|
export chronicles.LogLevel
|
||||||
|
|
||||||
when (NimMajor, NimMinor) < (1, 4):
|
{.push raises: [].}
|
||||||
{.push raises: [Defect].}
|
|
||||||
else:
|
|
||||||
{.push raises: [].}
|
|
||||||
|
|
||||||
type LogFormat* = enum
|
type LogFormat* = enum
|
||||||
TEXT
|
TEXT
|
||||||
|
|
|
@ -1,8 +1,5 @@
|
||||||
## An extension wrapper around nim-chronos
|
## An extension wrapper around nim-chronos
|
||||||
when (NimMajor, NimMinor) < (1, 4):
|
{.push raises: [].}
|
||||||
{.push raises: [Defect].}
|
|
||||||
else:
|
|
||||||
{.push raises: [].}
|
|
||||||
|
|
||||||
import chronos, chronicles
|
import chronos, chronicles
|
||||||
|
|
||||||
|
|
|
@ -1,9 +1,6 @@
|
||||||
# Extensions for libp2p's protobuf library implementation
|
# Extensions for libp2p's protobuf library implementation
|
||||||
|
|
||||||
when (NimMajor, NimMinor) < (1, 4):
|
{.push raises: [].}
|
||||||
{.push raises: [Defect].}
|
|
||||||
else:
|
|
||||||
{.push raises: [].}
|
|
||||||
|
|
||||||
import std/options, libp2p/protobuf/minprotobuf, libp2p/varint
|
import std/options, libp2p/protobuf/minprotobuf, libp2p/varint
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,4 @@
|
||||||
when (NimMajor, NimMinor) < (1, 4):
|
{.push raises: [].}
|
||||||
{.push raises: [Defect].}
|
|
||||||
else:
|
|
||||||
{.push raises: [].}
|
|
||||||
|
|
||||||
import std/options, chronos/timer, libp2p/stream/connection
|
import std/options, chronos/timer, libp2p/stream/connection
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,4 @@
|
||||||
when (NimMajor, NimMinor) < (1, 4):
|
{.push raises: [].}
|
||||||
{.push raises: [Defect].}
|
|
||||||
else:
|
|
||||||
{.push raises: [].}
|
|
||||||
|
|
||||||
import chronos
|
import chronos
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,4 @@
|
||||||
when (NimMajor, NimMinor) < (1, 4):
|
{.push raises: [].}
|
||||||
{.push raises: [Defect].}
|
|
||||||
else:
|
|
||||||
{.push raises: [].}
|
|
||||||
|
|
||||||
import std/[httpclient, json, uri, options], stew/results
|
import std/[httpclient, json, uri, options], stew/results
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,4 @@
|
||||||
when (NimMajor, NimMinor) < (1, 4):
|
{.push raises: [].}
|
||||||
{.push raises: [Defect].}
|
|
||||||
else:
|
|
||||||
{.push raises: [].}
|
|
||||||
|
|
||||||
import std/[options, strutils, net]
|
import std/[options, strutils, net]
|
||||||
import chronicles, eth/net/nat, stew/results, nativesockets
|
import chronicles, eth/net/nat, stew/results, nativesockets
|
||||||
|
|
|
@ -1,7 +1,4 @@
|
||||||
when (NimMajor, NimMinor) < (1, 4):
|
{.push raises: [].}
|
||||||
{.push raises: [Defect].}
|
|
||||||
else:
|
|
||||||
{.push raises: [].}
|
|
||||||
|
|
||||||
proc flatten*[T](a: seq[seq[T]]): seq[T] =
|
proc flatten*[T](a: seq[seq[T]]): seq[T] =
|
||||||
var aFlat = newSeq[T](0)
|
var aFlat = newSeq[T](0)
|
||||||
|
|
|
@ -1,7 +1,4 @@
|
||||||
when (NimMajor, NimMinor) < (1, 4):
|
{.push raises: [].}
|
||||||
{.push raises: [Defect].}
|
|
||||||
else:
|
|
||||||
{.push raises: [].}
|
|
||||||
|
|
||||||
import metrics
|
import metrics
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,4 @@
|
||||||
when (NimMajor, NimMinor) < (1, 4):
|
{.push raises: [].}
|
||||||
{.push raises: [Defect].}
|
|
||||||
else:
|
|
||||||
{.push raises: [].}
|
|
||||||
|
|
||||||
import
|
import
|
||||||
std/[sequtils, strutils, options, sets, net, json],
|
std/[sequtils, strutils, options, sets, net, json],
|
||||||
|
|
|
@ -1,7 +1,4 @@
|
||||||
when (NimMajor, NimMinor) < (1, 4):
|
{.push raises: [].}
|
||||||
{.push raises: [Defect].}
|
|
||||||
else:
|
|
||||||
{.push raises: [].}
|
|
||||||
|
|
||||||
## A set of utilities to integrate EIP-1459 DNS-based discovery
|
## A set of utilities to integrate EIP-1459 DNS-based discovery
|
||||||
## for Waku v2 nodes.
|
## for Waku v2 nodes.
|
||||||
|
|
|
@ -1,7 +1,4 @@
|
||||||
when (NimMajor, NimMinor) < (1, 4):
|
{.push raises: [].}
|
||||||
{.push raises: [Defect].}
|
|
||||||
else:
|
|
||||||
{.push raises: [].}
|
|
||||||
|
|
||||||
import
|
import
|
||||||
std/[options, net],
|
std/[options, net],
|
||||||
|
|
|
@ -1,7 +1,4 @@
|
||||||
when (NimMajor, NimMinor) < (1, 4):
|
{.push raises: [].}
|
||||||
{.push raises: [Defect].}
|
|
||||||
else:
|
|
||||||
{.push raises: [].}
|
|
||||||
|
|
||||||
type ClusterConf* = object
|
type ClusterConf* = object
|
||||||
maxMessageSize*: string
|
maxMessageSize*: string
|
||||||
|
|
|
@ -1,7 +1,4 @@
|
||||||
when (NimMajor, NimMinor) < (1, 4):
|
{.push raises: [].}
|
||||||
{.push raises: [Defect].}
|
|
||||||
else:
|
|
||||||
{.push raises: [].}
|
|
||||||
|
|
||||||
import
|
import
|
||||||
chronicles,
|
chronicles,
|
||||||
|
|
|
@ -1,7 +1,4 @@
|
||||||
when (NimMajor, NimMinor) < (1, 4):
|
{.push raises: [].}
|
||||||
{.push raises: [Defect].}
|
|
||||||
else:
|
|
||||||
{.push raises: [].}
|
|
||||||
|
|
||||||
import
|
import
|
||||||
std/[options, sequtils],
|
std/[options, sequtils],
|
||||||
|
|
|
@ -1,7 +1,4 @@
|
||||||
when (NimMajor, NimMinor) < (1, 4):
|
{.push raises: [].}
|
||||||
{.push raises: [Defect].}
|
|
||||||
else:
|
|
||||||
{.push raises: [].}
|
|
||||||
|
|
||||||
import
|
import
|
||||||
std/[options, sequtils, strutils, net],
|
std/[options, sequtils, strutils, net],
|
||||||
|
|
|
@ -1,7 +1,4 @@
|
||||||
when (NimMajor, NimMinor) < (1, 4):
|
{.push raises: [].}
|
||||||
{.push raises: [Defect].}
|
|
||||||
else:
|
|
||||||
{.push raises: [].}
|
|
||||||
|
|
||||||
import std/[options], chronos
|
import std/[options], chronos
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,4 @@
|
||||||
when (NimMajor, NimMinor) < (1, 4):
|
{.push raises: [].}
|
||||||
{.push raises: [Defect].}
|
|
||||||
else:
|
|
||||||
{.push raises: [].}
|
|
||||||
|
|
||||||
import
|
import
|
||||||
std/[options, sets, sequtils, times, strutils, math, random],
|
std/[options, sets, sequtils, times, strutils, math, random],
|
||||||
|
|
|
@ -1,7 +1,4 @@
|
||||||
when (NimMajor, NimMinor) < (1, 4):
|
{.push raises: [].}
|
||||||
{.push raises: [Defect].}
|
|
||||||
else:
|
|
||||||
{.push raises: [].}
|
|
||||||
|
|
||||||
import std/[tables, strutils, os], stew/results, chronicles
|
import std/[tables, strutils, os], stew/results, chronicles
|
||||||
import ../../../common/databases/db_sqlite, ../../../common/databases/common
|
import ../../../common/databases/db_sqlite, ../../../common/databases/common
|
||||||
|
|
|
@ -1,7 +1,4 @@
|
||||||
when (NimMajor, NimMinor) < (1, 4):
|
{.push raises: [].}
|
||||||
{.push raises: [Defect].}
|
|
||||||
else:
|
|
||||||
{.push raises: [].}
|
|
||||||
|
|
||||||
import stew/results
|
import stew/results
|
||||||
import ../../../waku_core, ../waku_peer_store
|
import ../../../waku_core, ../waku_peer_store
|
||||||
|
|
|
@ -1,7 +1,4 @@
|
||||||
when (NimMajor, NimMinor) < (1, 4):
|
{.push raises: [].}
|
||||||
{.push raises: [Defect].}
|
|
||||||
else:
|
|
||||||
{.push raises: [].}
|
|
||||||
|
|
||||||
import
|
import
|
||||||
std/[sets, options],
|
std/[sets, options],
|
||||||
|
|
|
@ -1,7 +1,4 @@
|
||||||
when (NimMajor, NimMinor) < (1, 4):
|
{.push raises: [].}
|
||||||
{.push raises: [Defect].}
|
|
||||||
else:
|
|
||||||
{.push raises: [].}
|
|
||||||
|
|
||||||
import
|
import
|
||||||
std/[tables, sequtils, sets, options, strutils],
|
std/[tables, sequtils, sets, options, strutils],
|
||||||
|
|
|
@ -1,7 +1,4 @@
|
||||||
when (NimMajor, NimMinor) < (1, 4):
|
{.push raises: [].}
|
||||||
{.push raises: [Defect].}
|
|
||||||
else:
|
|
||||||
{.push raises: [].}
|
|
||||||
|
|
||||||
import chronicles, chronos, metrics, metrics/chronos_httpserver
|
import chronicles, chronos, metrics, metrics/chronos_httpserver
|
||||||
import
|
import
|
||||||
|
|
|
@ -1,7 +1,4 @@
|
||||||
when (NimMajor, NimMinor) < (1, 4):
|
{.push raises: [].}
|
||||||
{.push raises: [Defect].}
|
|
||||||
else:
|
|
||||||
{.push raises: [].}
|
|
||||||
|
|
||||||
import
|
import
|
||||||
std/[hashes, options, sugar, tables, strutils, sequtils, os, net],
|
std/[hashes, options, sugar, tables, strutils, sequtils, os, net],
|
||||||
|
|
|
@ -1,8 +1,5 @@
|
||||||
# Waku Switch utils.
|
# Waku Switch utils.
|
||||||
when (NimMajor, NimMinor) < (1, 4):
|
{.push raises: [].}
|
||||||
{.push raises: [Defect].}
|
|
||||||
else:
|
|
||||||
{.push raises: [].}
|
|
||||||
|
|
||||||
import
|
import
|
||||||
std/options,
|
std/options,
|
||||||
|
|
|
@ -1,7 +1,4 @@
|
||||||
when (NimMajor, NimMinor) < (1, 4):
|
{.push raises: [].}
|
||||||
{.push raises: [Defect].}
|
|
||||||
else:
|
|
||||||
{.push raises: [].}
|
|
||||||
|
|
||||||
import metrics
|
import metrics
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,4 @@
|
||||||
when (NimMajor, NimMinor) < (1, 4):
|
{.push raises: [].}
|
||||||
{.push raises: [Defect].}
|
|
||||||
else:
|
|
||||||
{.push raises: [].}
|
|
||||||
|
|
||||||
import stew/results
|
import stew/results
|
||||||
import ../waku_core, ../waku_noise/noise_types, ../waku_noise/noise_utils
|
import ../waku_core, ../waku_noise/noise_types, ../waku_noise/noise_utils
|
||||||
|
|
|
@ -1,9 +1,6 @@
|
||||||
# Request utils.
|
# Request utils.
|
||||||
|
|
||||||
when (NimMajor, NimMinor) < (1, 4):
|
{.push raises: [].}
|
||||||
{.push raises: [Defect].}
|
|
||||||
else:
|
|
||||||
{.push raises: [].}
|
|
||||||
|
|
||||||
import bearssl/rand, stew/byteutils
|
import bearssl/rand, stew/byteutils
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,4 @@
|
||||||
when (NimMajor, NimMinor) < (1, 4):
|
{.push raises: [].}
|
||||||
{.push raises: [Defect].}
|
|
||||||
else:
|
|
||||||
{.push raises: [].}
|
|
||||||
|
|
||||||
import chronos, std/[options, sequtils], stew/results
|
import chronos, std/[options, sequtils], stew/results
|
||||||
import ../discovery/waku_discv5, ../waku_relay, ../waku_core, ./message_cache
|
import ../discovery/waku_discv5, ../waku_relay, ../waku_core, ./message_cache
|
||||||
|
|
|
@ -1,7 +1,4 @@
|
||||||
when (NimMajor, NimMinor) < (1, 4):
|
{.push raises: [].}
|
||||||
{.push raises: [Defect].}
|
|
||||||
else:
|
|
||||||
{.push raises: [].}
|
|
||||||
|
|
||||||
import
|
import
|
||||||
std/[sequtils, sugar, algorithm, options],
|
std/[sequtils, sugar, algorithm, options],
|
||||||
|
|
|
@ -1,7 +1,4 @@
|
||||||
when (NimMajor, NimMinor) < (1, 4):
|
{.push raises: [].}
|
||||||
{.push raises: [Defect].}
|
|
||||||
else:
|
|
||||||
{.push raises: [].}
|
|
||||||
|
|
||||||
import
|
import
|
||||||
chronicles,
|
chronicles,
|
||||||
|
|
|
@ -1,7 +1,4 @@
|
||||||
when (NimMajor, NimMinor) < (1, 4):
|
{.push raises: [].}
|
||||||
{.push raises: [Defect].}
|
|
||||||
else:
|
|
||||||
{.push raises: [].}
|
|
||||||
|
|
||||||
import
|
import
|
||||||
std/[strformat, sequtils, tables],
|
std/[strformat, sequtils, tables],
|
||||||
|
|
|
@ -1,7 +1,4 @@
|
||||||
when (NimMajor, NimMinor) < (1, 4):
|
{.push raises: [].}
|
||||||
{.push raises: [Defect].}
|
|
||||||
else:
|
|
||||||
{.push raises: [].}
|
|
||||||
|
|
||||||
import
|
import
|
||||||
chronicles,
|
chronicles,
|
||||||
|
|
|
@ -1,7 +1,4 @@
|
||||||
when (NimMajor, NimMinor) < (1, 4):
|
{.push raises: [].}
|
||||||
{.push raises: [Defect].}
|
|
||||||
else:
|
|
||||||
{.push raises: [].}
|
|
||||||
|
|
||||||
import net, tables
|
import net, tables
|
||||||
import presto
|
import presto
|
||||||
|
|
|
@ -1,7 +1,4 @@
|
||||||
when (NimMajor, NimMinor) < (1, 4):
|
{.push raises: [].}
|
||||||
{.push raises: [Defect].}
|
|
||||||
else:
|
|
||||||
{.push raises: [].}
|
|
||||||
|
|
||||||
import presto/client
|
import presto/client
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,4 @@
|
||||||
when (NimMajor, NimMinor) < (1, 4):
|
{.push raises: [].}
|
||||||
{.push raises: [Defect].}
|
|
||||||
else:
|
|
||||||
{.push raises: [].}
|
|
||||||
|
|
||||||
import
|
import
|
||||||
chronicles, json_serialization, json_serialization/std/options, presto/[route, client]
|
chronicles, json_serialization, json_serialization/std/options, presto/[route, client]
|
||||||
|
|
|
@ -1,7 +1,4 @@
|
||||||
when (NimMajor, NimMinor) < (1, 4):
|
{.push raises: [].}
|
||||||
{.push raises: [Defect].}
|
|
||||||
else:
|
|
||||||
{.push raises: [].}
|
|
||||||
|
|
||||||
import chronicles, json_serialization, presto/route
|
import chronicles, json_serialization, presto/route
|
||||||
import ../../../waku_node, ../responses, ../serdes, ./types
|
import ../../../waku_node, ../responses, ../serdes, ./types
|
||||||
|
|
|
@ -1,7 +1,4 @@
|
||||||
when (NimMajor, NimMinor) < (1, 4):
|
{.push raises: [].}
|
||||||
{.push raises: [Defect].}
|
|
||||||
else:
|
|
||||||
{.push raises: [].}
|
|
||||||
|
|
||||||
import chronicles, json_serialization, json_serialization/std/options
|
import chronicles, json_serialization, json_serialization/std/options
|
||||||
import ../../../waku_node, ../serdes
|
import ../../../waku_node, ../serdes
|
||||||
|
|
|
@ -1,7 +1,4 @@
|
||||||
when (NimMajor, NimMinor) < (1, 4):
|
{.push raises: [].}
|
||||||
{.push raises: [Defect].}
|
|
||||||
else:
|
|
||||||
{.push raises: [].}
|
|
||||||
|
|
||||||
import
|
import
|
||||||
json,
|
json,
|
||||||
|
|
|
@ -1,7 +1,4 @@
|
||||||
when (NimMajor, NimMinor) < (1, 4):
|
{.push raises: [].}
|
||||||
{.push raises: [Defect].}
|
|
||||||
else:
|
|
||||||
{.push raises: [].}
|
|
||||||
|
|
||||||
import
|
import
|
||||||
std/strformat,
|
std/strformat,
|
||||||
|
|
|
@ -1,7 +1,4 @@
|
||||||
when (NimMajor, NimMinor) < (1, 4):
|
{.push raises: [].}
|
||||||
{.push raises: [Defect].}
|
|
||||||
else:
|
|
||||||
{.push raises: [].}
|
|
||||||
|
|
||||||
import
|
import
|
||||||
std/[sets, strformat],
|
std/[sets, strformat],
|
||||||
|
|
|
@ -1,7 +1,4 @@
|
||||||
when (NimMajor, NimMinor) < (1, 4):
|
{.push raises: [].}
|
||||||
{.push raises: [Defect].}
|
|
||||||
else:
|
|
||||||
{.push raises: [].}
|
|
||||||
|
|
||||||
import
|
import
|
||||||
chronicles, json_serialization, json_serialization/std/options, presto/[route, client]
|
chronicles, json_serialization, json_serialization/std/options, presto/[route, client]
|
||||||
|
|
|
@ -1,7 +1,4 @@
|
||||||
when (NimMajor, NimMinor) < (1, 4):
|
{.push raises: [].}
|
||||||
{.push raises: [Defect].}
|
|
||||||
else:
|
|
||||||
{.push raises: [].}
|
|
||||||
|
|
||||||
import chronicles, json_serialization, presto/route
|
import chronicles, json_serialization, presto/route
|
||||||
import ../../../waku_node, ../responses, ../serdes, ./types
|
import ../../../waku_node, ../responses, ../serdes, ./types
|
||||||
|
|
|
@ -1,7 +1,4 @@
|
||||||
when (NimMajor, NimMinor) < (1, 4):
|
{.push raises: [].}
|
||||||
{.push raises: [Defect].}
|
|
||||||
else:
|
|
||||||
{.push raises: [].}
|
|
||||||
|
|
||||||
import chronicles, json_serialization, json_serialization/std/options
|
import chronicles, json_serialization, json_serialization/std/options
|
||||||
import ../../../waku_node, ../serdes
|
import ../../../waku_node, ../serdes
|
||||||
|
|
|
@ -1,7 +1,4 @@
|
||||||
when (NimMajor, NimMinor) < (1, 4):
|
{.push raises: [].}
|
||||||
{.push raises: [Defect].}
|
|
||||||
else:
|
|
||||||
{.push raises: [].}
|
|
||||||
|
|
||||||
import
|
import
|
||||||
chronicles, json_serialization, json_serialization/std/options, presto/[route, client]
|
chronicles, json_serialization, json_serialization/std/options, presto/[route, client]
|
||||||
|
|
|
@ -1,7 +1,4 @@
|
||||||
when (NimMajor, NimMinor) < (1, 4):
|
{.push raises: [].}
|
||||||
{.push raises: [Defect].}
|
|
||||||
else:
|
|
||||||
{.push raises: [].}
|
|
||||||
|
|
||||||
import std/strformat, stew/results, chronicles, uri, json_serialization, presto/route
|
import std/strformat, stew/results, chronicles, uri, json_serialization, presto/route
|
||||||
import
|
import
|
||||||
|
|
|
@ -1,7 +1,4 @@
|
||||||
when (NimMajor, NimMinor) < (1, 4):
|
{.push raises: [].}
|
||||||
{.push raises: [Defect].}
|
|
||||||
else:
|
|
||||||
{.push raises: [].}
|
|
||||||
|
|
||||||
import
|
import
|
||||||
std/[sets, strformat, uri],
|
std/[sets, strformat, uri],
|
||||||
|
|
|
@ -1,7 +1,4 @@
|
||||||
when (NimMajor, NimMinor) < (1, 4):
|
{.push raises: [].}
|
||||||
{.push raises: [Defect].}
|
|
||||||
else:
|
|
||||||
{.push raises: [].}
|
|
||||||
|
|
||||||
import
|
import
|
||||||
json,
|
json,
|
||||||
|
|
|
@ -1,7 +1,4 @@
|
||||||
when (NimMajor, NimMinor) < (1, 4):
|
{.push raises: [].}
|
||||||
{.push raises: [Defect].}
|
|
||||||
else:
|
|
||||||
{.push raises: [].}
|
|
||||||
|
|
||||||
import
|
import
|
||||||
std/strformat,
|
std/strformat,
|
||||||
|
|
|
@ -1,7 +1,4 @@
|
||||||
when (NimMajor, NimMinor) < (1, 4):
|
{.push raises: [].}
|
||||||
{.push raises: [Defect].}
|
|
||||||
else:
|
|
||||||
{.push raises: [].}
|
|
||||||
|
|
||||||
import
|
import
|
||||||
std/[sets, strformat],
|
std/[sets, strformat],
|
||||||
|
|
|
@ -1,7 +1,4 @@
|
||||||
when (NimMajor, NimMinor) < (1, 4):
|
{.push raises: [].}
|
||||||
{.push raises: [Defect].}
|
|
||||||
else:
|
|
||||||
{.push raises: [].}
|
|
||||||
|
|
||||||
import
|
import
|
||||||
std/[options, strutils, re, net],
|
std/[options, strutils, re, net],
|
||||||
|
|
|
@ -1,7 +1,4 @@
|
||||||
when (NimMajor, NimMinor) < (1, 4):
|
{.push raises: [].}
|
||||||
{.push raises: [Defect].}
|
|
||||||
else:
|
|
||||||
{.push raises: [].}
|
|
||||||
|
|
||||||
import
|
import
|
||||||
std/sets,
|
std/sets,
|
||||||
|
|
|
@ -1,7 +1,4 @@
|
||||||
when (NimMajor, NimMinor) < (1, 4):
|
{.push raises: [].}
|
||||||
{.push raises: [Defect].}
|
|
||||||
else:
|
|
||||||
{.push raises: [].}
|
|
||||||
|
|
||||||
import
|
import
|
||||||
std/sequtils,
|
std/sequtils,
|
||||||
|
|
|
@ -1,7 +1,4 @@
|
||||||
when (NimMajor, NimMinor) < (1, 4):
|
{.push raises: [].}
|
||||||
{.push raises: [Defect].}
|
|
||||||
else:
|
|
||||||
{.push raises: [].}
|
|
||||||
|
|
||||||
import
|
import
|
||||||
std/[sets, strformat, times],
|
std/[sets, strformat, times],
|
||||||
|
|
|
@ -1,7 +1,4 @@
|
||||||
when (NimMajor, NimMinor) < (1, 4):
|
{.push raises: [].}
|
||||||
{.push raises: [Defect].}
|
|
||||||
else:
|
|
||||||
{.push raises: [].}
|
|
||||||
|
|
||||||
import std/typetraits, stew/results, chronicles, presto/common
|
import std/typetraits, stew/results, chronicles, presto/common
|
||||||
import ./serdes
|
import ./serdes
|
||||||
|
|
|
@ -1,7 +1,4 @@
|
||||||
when (NimMajor, NimMinor) < (1, 4):
|
{.push raises: [].}
|
||||||
{.push raises: [Defect].}
|
|
||||||
else:
|
|
||||||
{.push raises: [].}
|
|
||||||
|
|
||||||
import
|
import
|
||||||
std/typetraits,
|
std/typetraits,
|
||||||
|
|
|
@ -1,7 +1,4 @@
|
||||||
when (NimMajor, NimMinor) < (1, 4):
|
{.push raises: [].}
|
||||||
{.push raises: [Defect].}
|
|
||||||
else:
|
|
||||||
{.push raises: [].}
|
|
||||||
|
|
||||||
import
|
import
|
||||||
std/typetraits,
|
std/typetraits,
|
||||||
|
|
|
@ -1,7 +1,4 @@
|
||||||
when (NimMajor, NimMinor) < (1, 4):
|
{.push raises: [].}
|
||||||
{.push raises: [Defect].}
|
|
||||||
else:
|
|
||||||
{.push raises: [].}
|
|
||||||
|
|
||||||
import std/net
|
import std/net
|
||||||
import
|
import
|
||||||
|
|
|
@ -1,7 +1,4 @@
|
||||||
when (NimMajor, NimMinor) < (1, 4):
|
{.push raises: [].}
|
||||||
{.push raises: [Defect].}
|
|
||||||
else:
|
|
||||||
{.push raises: [].}
|
|
||||||
|
|
||||||
import
|
import
|
||||||
chronicles, json_serialization, json_serialization/std/options, presto/[route, client]
|
chronicles, json_serialization, json_serialization/std/options, presto/[route, client]
|
||||||
|
|
|
@ -1,7 +1,4 @@
|
||||||
when (NimMajor, NimMinor) < (1, 4):
|
{.push raises: [].}
|
||||||
{.push raises: [Defect].}
|
|
||||||
else:
|
|
||||||
{.push raises: [].}
|
|
||||||
|
|
||||||
import std/strformat, stew/results, chronicles, uri, json_serialization, presto/route
|
import std/strformat, stew/results, chronicles, uri, json_serialization, presto/route
|
||||||
import
|
import
|
||||||
|
|
|
@ -1,7 +1,4 @@
|
||||||
when (NimMajor, NimMinor) < (1, 4):
|
{.push raises: [].}
|
||||||
{.push raises: [Defect].}
|
|
||||||
else:
|
|
||||||
{.push raises: [].}
|
|
||||||
|
|
||||||
import
|
import
|
||||||
std/[sets, strformat, uri, options, sequtils],
|
std/[sets, strformat, uri, options, sequtils],
|
||||||
|
|
|
@ -1,7 +1,4 @@
|
||||||
when (NimMajor, NimMinor) < (1, 4):
|
{.push raises: [].}
|
||||||
{.push raises: [Defect].}
|
|
||||||
else:
|
|
||||||
{.push raises: [].}
|
|
||||||
|
|
||||||
import
|
import
|
||||||
std/[times, options, sequtils, strutils, algorithm],
|
std/[times, options, sequtils, strutils, algorithm],
|
||||||
|
|
|
@ -1,7 +1,4 @@
|
||||||
when (NimMajor, NimMinor) < (1, 4):
|
{.push raises: [].}
|
||||||
{.push raises: [Defect].}
|
|
||||||
else:
|
|
||||||
{.push raises: [].}
|
|
||||||
|
|
||||||
import metrics
|
import metrics
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,4 @@
|
||||||
when (NimMajor, NimMinor) < (1, 4):
|
{.push raises: [].}
|
||||||
{.push raises: [Defect].}
|
|
||||||
else:
|
|
||||||
{.push raises: [].}
|
|
||||||
|
|
||||||
import std/options, stew/results, stew/byteutils, stew/arrayops, nimcrypto/sha2
|
import std/options, stew/results, stew/byteutils, stew/arrayops, nimcrypto/sha2
|
||||||
import ../waku_core, ../common/paging
|
import ../waku_core, ../common/paging
|
||||||
|
|
|
@ -1,7 +1,4 @@
|
||||||
when (NimMajor, NimMinor) < (1, 4):
|
{.push raises: [].}
|
||||||
{.push raises: [Defect].}
|
|
||||||
else:
|
|
||||||
{.push raises: [].}
|
|
||||||
|
|
||||||
import std/options, stew/results, chronos
|
import std/options, stew/results, chronos
|
||||||
import ../waku_core, ./common
|
import ../waku_core, ./common
|
||||||
|
|
|
@ -1,7 +1,4 @@
|
||||||
when (NimMajor, NimMinor) < (1, 4):
|
{.push raises: [].}
|
||||||
{.push raises: [Defect].}
|
|
||||||
else:
|
|
||||||
{.push raises: [].}
|
|
||||||
|
|
||||||
import stew/results, chronicles, chronos
|
import stew/results, chronicles, chronos
|
||||||
import
|
import
|
||||||
|
|
|
@ -1,7 +1,4 @@
|
||||||
when (NimMajor, NimMinor) < (1, 4):
|
{.push raises: [].}
|
||||||
{.push raises: [Defect].}
|
|
||||||
else:
|
|
||||||
{.push raises: [].}
|
|
||||||
|
|
||||||
import
|
import
|
||||||
./postgres_driver/postgres_driver,
|
./postgres_driver/postgres_driver,
|
||||||
|
|
|
@ -1,7 +1,4 @@
|
||||||
when (NimMajor, NimMinor) < (1, 4):
|
{.push raises: [].}
|
||||||
{.push raises: [Defect].}
|
|
||||||
else:
|
|
||||||
{.push raises: [].}
|
|
||||||
|
|
||||||
import
|
import
|
||||||
std/[nre, options, sequtils, strutils, strformat, times],
|
std/[nre, options, sequtils, strutils, strformat, times],
|
||||||
|
|
|
@ -1,7 +1,4 @@
|
||||||
when (NimMajor, NimMinor) < (1, 4):
|
{.push raises: [].}
|
||||||
{.push raises: [Defect].}
|
|
||||||
else:
|
|
||||||
{.push raises: [].}
|
|
||||||
|
|
||||||
import chronos, stew/results
|
import chronos, stew/results
|
||||||
import ../../../common/databases/db_postgres, ../../../common/error_handling
|
import ../../../common/databases/db_postgres, ../../../common/error_handling
|
||||||
|
|
|
@ -1,7 +1,4 @@
|
||||||
when (NimMajor, NimMinor) < (1, 4):
|
{.push raises: [].}
|
||||||
{.push raises: [Defect].}
|
|
||||||
else:
|
|
||||||
{.push raises: [].}
|
|
||||||
|
|
||||||
import ./queue_driver/queue_driver, ./queue_driver/index
|
import ./queue_driver/queue_driver, ./queue_driver/index
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,4 @@
|
||||||
when (NimMajor, NimMinor) < (1, 4):
|
{.push raises: [].}
|
||||||
{.push raises: [Defect].}
|
|
||||||
else:
|
|
||||||
{.push raises: [].}
|
|
||||||
|
|
||||||
import stew/byteutils, nimcrypto/sha2
|
import stew/byteutils, nimcrypto/sha2
|
||||||
import ../../../waku_core, ../../common
|
import ../../../waku_core, ../../common
|
||||||
|
|
|
@ -1,7 +1,4 @@
|
||||||
when (NimMajor, NimMinor) < (1, 4):
|
{.push raises: [].}
|
||||||
{.push raises: [Defect].}
|
|
||||||
else:
|
|
||||||
{.push raises: [].}
|
|
||||||
|
|
||||||
import std/options, stew/results, stew/sorted_set, chronicles, chronos
|
import std/options, stew/results, stew/sorted_set, chronicles, chronos
|
||||||
import ../../../waku_core, ../../common, ../../driver, ./index
|
import ../../../waku_core, ../../common, ../../driver, ./index
|
||||||
|
|
|
@ -1,7 +1,4 @@
|
||||||
when (NimMajor, NimMinor) < (1, 4):
|
{.push raises: [].}
|
||||||
{.push raises: [Defect].}
|
|
||||||
else:
|
|
||||||
{.push raises: [].}
|
|
||||||
|
|
||||||
import ./sqlite_driver/sqlite_driver
|
import ./sqlite_driver/sqlite_driver
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,4 @@
|
||||||
when (NimMajor, NimMinor) < (1, 4):
|
{.push raises: [].}
|
||||||
{.push raises: [Defect].}
|
|
||||||
else:
|
|
||||||
{.push raises: [].}
|
|
||||||
|
|
||||||
import ../../../waku_core, ../../common
|
import ../../../waku_core, ../../common
|
||||||
|
|
||||||
|
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue