mirror of
https://github.com/logos-messaging/storenode-messages-counter.git
synced 2026-01-02 14:13:11 +00:00
fix: initial delay
This commit is contained in:
parent
9983b65505
commit
a795c4a32b
@ -204,7 +204,7 @@ func retrieveHistory(ctx context.Context, topic string, lastSyncTimestamp *time.
|
||||
now := wakuNode.Timesource().Now()
|
||||
|
||||
// Query is done with a delay
|
||||
startTime := now.Add(-(timeInterval + 5*time.Minute))
|
||||
startTime := now.Add(-(timeInterval + delay))
|
||||
if lastSyncTimestamp != nil {
|
||||
startTime = *lastSyncTimestamp
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user