fix: add one more second to messages with delay

This commit is contained in:
Roman 2024-04-17 23:29:59 +08:00
parent 8229e63839
commit b720ba7811
No known key found for this signature in database
GPG Key ID: B8FE070B54E11B75

View File

@ -49,7 +49,7 @@ class TestRelayRLN(StepsRLN, StepsRelay):
message = self.create_message(payload=to_base64(payload["value"]))
try:
if i % 2 == 1: # every sample with odd index is sent slowly
delay(self.epoch_time)
delay(self.epoch_time + 1)
now = math.trunc(time())
logger.debug(f"Message sent at timestamp {now}")
self.publish_message(message)