mirror of
https://github.com/andwati/zitadel.git
synced 2026-12-02 17:08:51 +00:00
fix(spooler): improve check for failure count (#326)
* fix(spooler): improve check for failure count * fix(spooler): add tests for HandleError * fix(spooler): correct test
This commit is contained in:
@@ -2,6 +2,7 @@ package spooler
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
||||
"github.com/caos/logging"
|
||||
"github.com/caos/zitadel/internal/eventstore"
|
||||
"github.com/caos/zitadel/internal/eventstore/models"
|
||||
@@ -117,7 +118,7 @@ func HandleError(event *models.Event, failedErr error,
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if errorCountUntilSkip == failedEvent.FailureCount {
|
||||
if errorCountUntilSkip <= failedEvent.FailureCount {
|
||||
return processSequence(event.Sequence)
|
||||
}
|
||||
return nil
|
||||
|
||||
Reference in New Issue
Block a user