fix: initial delay

This commit is contained in:
Richard Ramos 2024-05-17 14:38:52 -04:00
parent 9983b65505
commit a795c4a32b
No known key found for this signature in database
GPG Key ID: 1CE87DB518195760

View File

@ -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
}