From 78cab266a2ddc4a745140bbc11a464ebc7b8ff7f Mon Sep 17 00:00:00 2001 From: Edoardo Spadolini Date: Wed, 3 Aug 2022 19:41:34 +0200 Subject: [PATCH] Don't reset eventID to 0 when out of events in the Postgres backend (#15160) --- lib/backend/postgres/tx.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/backend/postgres/tx.go b/lib/backend/postgres/tx.go index 3ce0c8b002a..8bda0e188f8 100644 --- a/lib/backend/postgres/tx.go +++ b/lib/backend/postgres/tx.go @@ -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