From adfd6778850a9492016bc68d8bc577471f5bca7d Mon Sep 17 00:00:00 2001 From: Prem Chaitanya Prathi Date: Mon, 30 Jun 2025 15:42:47 +0530 Subject: [PATCH] fix error during rebase --- waku/waku_lightpush/client.nim | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/waku/waku_lightpush/client.nim b/waku/waku_lightpush/client.nim index 18b4cabd4..ff923423d 100644 --- a/waku/waku_lightpush/client.nim +++ b/waku/waku_lightpush/client.nim @@ -97,6 +97,10 @@ proc publishToAny*( ## This proc is similar to the publish one but in this case ## we don't specify a particular peer and instead we get it from peer manager + var message = wakuMessage + if message.timestamp == 0: + message.timestamp = getNowInNanosecondTime() + let peer = wl.peerManager.selectPeer(WakuLightPushCodec).valueOr: # TODO: check if it is matches the situation - shall we distinguish client side missing peers from server side? return lighpushErrorResult(NO_PEERS_TO_RELAY, "no suitable remote peers")