mirror of
https://github.com/logos-messaging/waku-tests.git
synced 2026-01-06 00:03:12 +00:00
Revert "Try to ensure that no two messages have same timestamp"
This reverts commit aa0109e29bd99fb08eae60a43fe4fe7a0a5e0fd7.
This commit is contained in:
parent
aa0109e29b
commit
6679d4042f
12
index.js
12
index.js
@ -92,9 +92,7 @@ export default function runAll(nodes) {
|
|||||||
`sent via ${hostnames[i]} - ${id}`,
|
`sent via ${hostnames[i]} - ${id}`,
|
||||||
contentTopic
|
contentTopic
|
||||||
);
|
);
|
||||||
// Wait 1 ms to be sure that no two messages have the same timestamp.
|
return waku.relay.send(msg);
|
||||||
// Timestamp are in milliseconds in js-waku.
|
|
||||||
return delay(1).then(() => waku.relay.send(msg));
|
|
||||||
});
|
});
|
||||||
|
|
||||||
await Promise.all(relayPromises);
|
await Promise.all(relayPromises);
|
||||||
@ -170,9 +168,7 @@ export default function runAll(nodes) {
|
|||||||
`sent via ${hostnames[i]} - ${id}`,
|
`sent via ${hostnames[i]} - ${id}`,
|
||||||
contentTopic
|
contentTopic
|
||||||
);
|
);
|
||||||
// Wait 1 ms to be sure that no two messages have the same timestamp.
|
return waku.lightPush.push(msg);
|
||||||
// Timestamp are in milliseconds in js-waku.
|
|
||||||
return delay(1).then(() => waku.lightPush.push(msg));
|
|
||||||
});
|
});
|
||||||
|
|
||||||
await Promise.all(relayPromises);
|
await Promise.all(relayPromises);
|
||||||
@ -230,9 +226,7 @@ export default function runAll(nodes) {
|
|||||||
`sent via ${nodes[i]} - ${id}`,
|
`sent via ${nodes[i]} - ${id}`,
|
||||||
contentTopic
|
contentTopic
|
||||||
);
|
);
|
||||||
// Wait 1 ms to be sure that no two messages have the same timestamp.
|
return waku.lightPush.push(msg);
|
||||||
// Timestamp are in milliseconds in js-waku.
|
|
||||||
return delay(1).then(() => waku.lightPush.push(msg));
|
|
||||||
});
|
});
|
||||||
|
|
||||||
await Promise.all(pushPromises);
|
await Promise.all(pushPromises);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user