mirror of
https://github.com/logos-messaging/logos-delivery.git
synced 2026-06-05 05:29:45 +00:00
Fix lint
This commit is contained in:
parent
9a5f22b62a
commit
096942828d
@ -11,7 +11,6 @@ import
|
||||
waku/factory/conf_builder/conf_builder,
|
||||
waku/common/logging
|
||||
|
||||
|
||||
suite "WakuNodeConf - mode-driven toWakuConf":
|
||||
test "Core mode enables service protocols":
|
||||
## Given
|
||||
@ -151,8 +150,7 @@ suite "WakuNodeConf - JSON parsing with fieldPairs":
|
||||
|
||||
test "JSON with unknown fields is rejected":
|
||||
## Given / When
|
||||
let confRes =
|
||||
parseNodeConfFromJson("""{"unknownField": true, "clusterId": 5}""")
|
||||
let confRes = parseNodeConfFromJson("""{"unknownField": true, "clusterId": 5}""")
|
||||
|
||||
## Then - the parser rejects unrecognized config keys
|
||||
check confRes.isErr()
|
||||
@ -268,8 +266,7 @@ suite "WakuNodeConf JSON -> WakuConf integration":
|
||||
|
||||
test "JSON with preset produces valid WakuConf":
|
||||
## Given
|
||||
let confRes =
|
||||
parseNodeConfFromJson("""{"mode": "Core", "preset": "logosdev"}""")
|
||||
let confRes = parseNodeConfFromJson("""{"mode": "Core", "preset": "logosdev"}""")
|
||||
require confRes.isOk()
|
||||
let conf = confRes.get()
|
||||
|
||||
|
||||
@ -288,7 +288,8 @@ hence would have reachability issues.""",
|
||||
|
||||
## Relay config
|
||||
relay* {.
|
||||
desc: "Enable relay protocol: true|false", defaultValue: DefaultCLIRelay,
|
||||
desc: "Enable relay protocol: true|false",
|
||||
defaultValue: DefaultCLIRelay,
|
||||
name: "relay"
|
||||
.}: bool
|
||||
|
||||
|
||||
@ -43,11 +43,14 @@ const git_version {.strdefine.} = "(unknown)"
|
||||
|
||||
const
|
||||
DefaultMaxConnections* = 150
|
||||
DefaultRelay*: bool = false # historical confbuilder default; wakunode2 CLI deviates (true)
|
||||
DefaultRelay*: bool = false
|
||||
# historical confbuilder default; wakunode2 CLI deviates (true)
|
||||
DefaultLightPush*: bool = false
|
||||
DefaultPeerExchange*: bool = false # historical confbuilder default; wakunode2 CLI deviates (true)
|
||||
DefaultPeerExchange*: bool = false
|
||||
# historical confbuilder default; wakunode2 CLI deviates (true)
|
||||
DefaultStoreSyncMount*: bool = false
|
||||
DefaultRendezvous*: bool = false # historical confbuilder default; wakunode2 CLI deviates (true)
|
||||
DefaultRendezvous*: bool = false
|
||||
# historical confbuilder default; wakunode2 CLI deviates (true)
|
||||
DefaultMix*: bool = false
|
||||
DefaultRelayPeerExchange*: bool = false
|
||||
DefaultLogLevel*: logging.LogLevel = logging.LogLevel.INFO
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user