forked from Silverfish/proton-bridge
fix(GODT-3123): Trigger bad event on empty EventID on existing accounts
See `checkIrrecoverableEventID` for more details.
This commit is contained in:
@ -58,6 +58,10 @@ func (s Status) IsComplete() bool {
|
||||
return s.HasLabels && s.HasMessages
|
||||
}
|
||||
|
||||
func (s Status) InProgress() bool {
|
||||
return s.HasLabels || s.HasMessageCount
|
||||
}
|
||||
|
||||
// Regulator is an abstraction for the sync service, since it regulates the number of concurrent sync activities.
|
||||
type Regulator interface {
|
||||
Sync(ctx context.Context, stage *Job)
|
||||
|
||||
Reference in New Issue
Block a user