Skip to content

Commit cd9b1e2

Browse files
committed
fix applyWorkItem
Signed-off-by: Fabian Martinez <[email protected]>
1 parent 4c008c7 commit cd9b1e2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

backend/orchestration.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -194,8 +194,8 @@ func (w *orchestratorProcessor) applyWorkItem(ctx context.Context, wi *Orchestra
194194
}
195195
}
196196

197-
if added == 0 {
198-
w.logger.Warnf("%v: all new events were dropped", wi.InstanceID)
197+
if len(wi.State.NewEvents) == 0 {
198+
w.logger.Warnf("%v: no new events to process", wi.InstanceID)
199199
return ctx, span, false
200200
}
201201

0 commit comments

Comments
 (0)