From 6679d4042f830c51c664754276e23a3cbeb0de1d Mon Sep 17 00:00:00 2001 From: Franck Royer Date: Wed, 4 May 2022 11:18:31 +1000 Subject: [PATCH] Revert "Try to ensure that no two messages have same timestamp" This reverts commit aa0109e29bd99fb08eae60a43fe4fe7a0a5e0fd7. --- index.js | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/index.js b/index.js index 4af9c3f..9978549 100644 --- a/index.js +++ b/index.js @@ -92,9 +92,7 @@ export default function runAll(nodes) { `sent via ${hostnames[i]} - ${id}`, contentTopic ); - // Wait 1 ms to be sure that no two messages have the same timestamp. - // Timestamp are in milliseconds in js-waku. - return delay(1).then(() => waku.relay.send(msg)); + return waku.relay.send(msg); }); await Promise.all(relayPromises); @@ -170,9 +168,7 @@ export default function runAll(nodes) { `sent via ${hostnames[i]} - ${id}`, contentTopic ); - // Wait 1 ms to be sure that no two messages have the same timestamp. - // Timestamp are in milliseconds in js-waku. - return delay(1).then(() => waku.lightPush.push(msg)); + return waku.lightPush.push(msg); }); await Promise.all(relayPromises); @@ -230,9 +226,7 @@ export default function runAll(nodes) { `sent via ${nodes[i]} - ${id}`, contentTopic ); - // Wait 1 ms to be sure that no two messages have the same timestamp. - // Timestamp are in milliseconds in js-waku. - return delay(1).then(() => waku.lightPush.push(msg)); + return waku.lightPush.push(msg); }); await Promise.all(pushPromises);