From 287bafc45c65ec2afb7256ea9c826ec85faa3465 Mon Sep 17 00:00:00 2001 From: stubbsta Date: Thu, 2 Jul 2026 14:16:00 +0200 Subject: [PATCH] Fix linting --- logos_delivery/waku/node/waku_node/lightpush.nim | 4 +--- tests/node/test_wakunode_legacy_lightpush.nim | 3 +-- tests/node/test_wakunode_lightpush.nim | 3 +-- 3 files changed, 3 insertions(+), 7 deletions(-) diff --git a/logos_delivery/waku/node/waku_node/lightpush.nim b/logos_delivery/waku/node/waku_node/lightpush.nim index d33bea34b..1b26aa79d 100644 --- a/logos_delivery/waku/node/waku_node/lightpush.nim +++ b/logos_delivery/waku/node/waku_node/lightpush.nim @@ -160,9 +160,7 @@ proc legacyLightpushPublish*( msgWithProof = ( await checkAndGenerateRLNProof(rln, msgWithProof, forceMerkleProofRefresh = true) ).valueOr: - return err( - "failed call checkAndGenerateRLNProof from lightpush retry: " & error - ) + return err("failed call checkAndGenerateRLNProof from lightpush retry: " & error) return await internalPublish(node, pubsubForPublish, msgWithProof, peer) except CatchableError: diff --git a/tests/node/test_wakunode_legacy_lightpush.nim b/tests/node/test_wakunode_legacy_lightpush.nim index 55b42f55f..a829dc272 100644 --- a/tests/node/test_wakunode_legacy_lightpush.nim +++ b/tests/node/test_wakunode_legacy_lightpush.nim @@ -185,8 +185,7 @@ suite "RLN Proofs as a Lightpush Service": # "RLN validation failed" rejection: an already attached proof must NOT # short-circuit checkAndGenerateRLNProof when forceMerkleProofRefresh=true, # and the cache must be refetched from chain instead of trusted. - let firstMsg = - (await checkAndGenerateRLNProof(some(server.rln), message)).get() + let firstMsg = (await checkAndGenerateRLNProof(some(server.rln), message)).get() check firstMsg.proof.len > 0 # Corrupt the cache to model a stale/invalid witness — the same state a diff --git a/tests/node/test_wakunode_lightpush.nim b/tests/node/test_wakunode_lightpush.nim index 30422e696..53ff719c8 100644 --- a/tests/node/test_wakunode_lightpush.nim +++ b/tests/node/test_wakunode_lightpush.nim @@ -183,8 +183,7 @@ suite "RLN Proofs as a Lightpush Service": # attached proof must NOT short-circuit checkAndGenerateRLNProof when # forceMerkleProofRefresh=true, and the cache must be refetched from # chain instead of trusted. - let firstMsg = - (await checkAndGenerateRLNProof(some(server.rln), message)).get() + let firstMsg = (await checkAndGenerateRLNProof(some(server.rln), message)).get() check firstMsg.proof.len > 0 # Corrupt the cache to model a stale/invalid witness — the same state a