diff --git a/apps/chat2/chat2.nim b/apps/chat2/chat2.nim index 903685b56..2481d8065 100644 --- a/apps/chat2/chat2.nim +++ b/apps/chat2/chat2.nim @@ -538,9 +538,7 @@ proc processInput(rfd: AsyncFD, rng: crypto.Rng) {.async.} = chainId: UInt256.fromBytesBE(conf.rlnRelayChainId.toBytesBE()), ethClientUrls: conf.ethClientUrls.mapIt(string(it)), creds: some( - RlnCreds( - path: conf.rlnRelayCredPath, password: conf.rlnRelayCredPassword - ) + RlnCreds(path: conf.rlnRelayCredPath, password: conf.rlnRelayCredPassword) ), userMessageLimit: conf.rlnRelayUserMessageLimit, epochSizeSec: conf.rlnEpochSizeSec, diff --git a/logos_delivery/waku/waku_lightpush/callbacks.nim b/logos_delivery/waku/waku_lightpush/callbacks.nim index 3ea459136..f8862ee22 100644 --- a/logos_delivery/waku/waku_lightpush/callbacks.nim +++ b/logos_delivery/waku/waku_lightpush/callbacks.nim @@ -3,12 +3,7 @@ import logos_delivery/waku/compat/option_valueor import results -import - ../waku_core, - ../waku_relay, - ./common, - ../waku_rln, - ../waku_rln/protocol_types +import ../waku_core, ../waku_relay, ./common, ../waku_rln, ../waku_rln/protocol_types import std/times, libp2p/peerid, stew/byteutils diff --git a/logos_delivery/waku/waku_rln/rln/wrappers.nim b/logos_delivery/waku/waku_rln/rln/wrappers.nim index 8f55228b1..54a6f6d12 100644 --- a/logos_delivery/waku/waku_rln/rln/wrappers.nim +++ b/logos_delivery/waku/waku_rln/rln/wrappers.nim @@ -206,9 +206,7 @@ proc extractMetadata*(proof: RateLimitProof): RlnResult[ProofMetadata] = ) ) -proc buildPathElementsVec( - pathElements: seq[byte], depth: int -): RlnResult[Vec_CFr] = +proc buildPathElementsVec(pathElements: seq[byte], depth: int): RlnResult[Vec_CFr] = ## Caller MUST ffi_vec_cfr_free the returned Vec_CFr. var vec = ffi_vec_cfr_new(csize_t(depth)) for i in 0 ..< depth: @@ -224,9 +222,7 @@ proc buildPathElementsVec( ffi_cfr_free(element) ok(vec) -proc buildWitnessInput( - witness: RLNWitnessInput -): RlnResult[ptr FFI_RLNWitnessInput] = +proc buildWitnessInput(witness: RLNWitnessInput): RlnResult[ptr FFI_RLNWitnessInput] = ## ffi_rln_witness_input_new copies all inputs, so the intermediate CFrs/vecs ## are freed here. Caller MUST ffi_rln_witness_input_free the returned handle. let depth = witness.identity_path_index.len diff --git a/tests/waku_keystore/utils.nim b/tests/waku_keystore/utils.nim index f63ba0266..23a59a8fb 100644 --- a/tests/waku_keystore/utils.nim +++ b/tests/waku_keystore/utils.nim @@ -4,8 +4,7 @@ import stint import - logos_delivery/waku/ - [waku_keystore/protocol_types, waku_rln, waku_rln/protocol_types] + logos_delivery/waku/[waku_keystore/protocol_types, waku_rln, waku_rln/protocol_types] func fromStrToBytesLe*(v: string): seq[byte] = try: diff --git a/tests/waku_relay/utils.nim b/tests/waku_relay/utils.nim index 293df8f63..c92db5320 100644 --- a/tests/waku_relay/utils.nim +++ b/tests/waku_relay/utils.nim @@ -13,9 +13,8 @@ import brokers/broker_context from std/times import epochTime import - logos_delivery/waku/[ - waku_relay, node/waku_node, node/peer_manager, waku_core, waku_node, waku_rln - ], + logos_delivery/waku/ + [waku_relay, node/waku_node, node/peer_manager, waku_core, waku_node, waku_rln], ../waku_store/store_utils, ../waku_archive/archive_utils, ../testlib/[wakucore, futures]