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()), chainId: UInt256.fromBytesBE(conf.rlnRelayChainId.toBytesBE()),
ethClientUrls: conf.ethClientUrls.mapIt(string(it)), ethClientUrls: conf.ethClientUrls.mapIt(string(it)),
creds: some( creds: some(
RlnCreds( RlnCreds(path: conf.rlnRelayCredPath, password: conf.rlnRelayCredPassword)
path: conf.rlnRelayCredPath, password: conf.rlnRelayCredPassword
)
), ),
userMessageLimit: conf.rlnRelayUserMessageLimit, userMessageLimit: conf.rlnRelayUserMessageLimit,
epochSizeSec: conf.rlnEpochSizeSec, epochSizeSec: conf.rlnEpochSizeSec,

View File

@ -3,12 +3,7 @@ import logos_delivery/waku/compat/option_valueor
import results import results
import import ../waku_core, ../waku_relay, ./common, ../waku_rln, ../waku_rln/protocol_types
../waku_core,
../waku_relay,
./common,
../waku_rln,
../waku_rln/protocol_types
import std/times, libp2p/peerid, stew/byteutils import std/times, libp2p/peerid, stew/byteutils

View File

@ -206,9 +206,7 @@ proc extractMetadata*(proof: RateLimitProof): RlnResult[ProofMetadata] =
) )
) )
proc buildPathElementsVec( proc buildPathElementsVec(pathElements: seq[byte], depth: int): RlnResult[Vec_CFr] =
pathElements: seq[byte], depth: int
): RlnResult[Vec_CFr] =
## Caller MUST ffi_vec_cfr_free the returned Vec_CFr. ## Caller MUST ffi_vec_cfr_free the returned Vec_CFr.
var vec = ffi_vec_cfr_new(csize_t(depth)) var vec = ffi_vec_cfr_new(csize_t(depth))
for i in 0 ..< depth: for i in 0 ..< depth:
@ -224,9 +222,7 @@ proc buildPathElementsVec(
ffi_cfr_free(element) ffi_cfr_free(element)
ok(vec) ok(vec)
proc buildWitnessInput( proc buildWitnessInput(witness: RLNWitnessInput): RlnResult[ptr FFI_RLNWitnessInput] =
witness: RLNWitnessInput
): RlnResult[ptr FFI_RLNWitnessInput] =
## ffi_rln_witness_input_new copies all inputs, so the intermediate CFrs/vecs ## 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. ## are freed here. Caller MUST ffi_rln_witness_input_free the returned handle.
let depth = witness.identity_path_index.len let depth = witness.identity_path_index.len

View File

@ -4,8 +4,7 @@
import stint import stint
import import
logos_delivery/waku/ logos_delivery/waku/[waku_keystore/protocol_types, waku_rln, waku_rln/protocol_types]
[waku_keystore/protocol_types, waku_rln, waku_rln/protocol_types]
func fromStrToBytesLe*(v: string): seq[byte] = func fromStrToBytesLe*(v: string): seq[byte] =
try: try:

View File

@ -13,9 +13,8 @@ import brokers/broker_context
from std/times import epochTime from std/times import epochTime
import import
logos_delivery/waku/[ logos_delivery/waku/
waku_relay, node/waku_node, node/peer_manager, waku_core, waku_node, waku_rln [waku_relay, node/waku_node, node/peer_manager, waku_core, waku_node, waku_rln],
],
../waku_store/store_utils, ../waku_store/store_utils,
../waku_archive/archive_utils, ../waku_archive/archive_utils,
../testlib/[wakucore, futures] ../testlib/[wakucore, futures]