Don't reset eventID to 0 when out of events in the Postgres backend (#15160)

This commit is contained in:
Edoardo Spadolini
2022-08-03 17:41:34 +00:00
committed by GitHub
parent f8be9cb6be
commit 78cab266a2
+1 -1
View File
@@ -207,7 +207,7 @@ func (tx *pgTx) GetEvents(fromEventID int64, limit int) sqlbk.Events {
return events
}
var lastEventID int64
lastEventID := fromEventID
var backendEvents []backend.Event
for rows.Next() {
var event backend.Event