fix: handle context correctly in processEvents (#7320)

This commit is contained in:
Livio Spring
2024-01-31 11:25:28 +01:00
committed by GitHub
parent 46bffd24ee
commit e000fdd792
2 changed files with 6 additions and 6 deletions

View File

@@ -93,8 +93,8 @@ func (h *Handler) setState(tx *sql.Tx, updatedState *state) error {
updatedState.offset,
)
if err != nil {
h.log().WithError(err).Debug("unable to update state")
return err
h.log().WithError(err).Warn("unable to update state")
return zerrors.ThrowInternal(err, "V2-WF23g2", "unable to update state")
}
if affected, err := res.RowsAffected(); affected == 0 {
h.log().OnError(err).Error("unable to check if states are updated")