mirror of
https://github.com/logos-messaging/logos-messaging-nim.git
synced 2026-08-10 17:33:18 +00:00
Fix linting
This commit is contained in:
parent
c6ae609726
commit
ea2606440f
@ -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,
|
||||||
|
|||||||
@ -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
|
||||||
|
|
||||||
|
|||||||
@ -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
|
||||||
|
|||||||
@ -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:
|
||||||
|
|||||||
@ -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]
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user