Skip to content

Commit

Permalink
Don't reset eventID to 0 when out of events in the Postgres backend (g…
Browse files Browse the repository at this point in the history
  • Loading branch information
espadolini authored Aug 3, 2022
1 parent f8be9cb commit 78cab26
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/backend/postgres/tx.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 78cab26

Please sign in to comment.