Fix linting

This commit is contained in:
stubbsta 2026-06-24 16:45:39 +02:00
parent c6ae609726
commit ea2606440f
No known key found for this signature in database
5 changed files with 7 additions and 20 deletions

View File

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

View File

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

View File

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

View File

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

View File

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