Don't return early if there are no events

This commit is contained in:
Joakim Recht 2024-01-23 16:41:45 +01:00
parent 5bb2f334b0
commit c48a7aad58

View file

@ -208,9 +208,6 @@ func (p *PDUStreamProvider) IncrementalSync(
req.Log.WithError(err).Error("unable to get recent events")
return r.From
}
if len(dbEvents) == 0 {
return r.To
}
newPos = from
for _, delta := range stateDeltas {