Skip to content

Commit 4cc3f0f

Browse files
authored
fix: watcher sudden closing (#114)
Signed-off-by: Gosha <[email protected]>
1 parent 130e015 commit 4cc3f0f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkg/event_handler/main.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ func Start(ctx context.Context, stop context.CancelFunc, cfg *conf.GlobalConfig,
2828
}
2929
go func() {
3030
for event := range watcher.ResultChan() {
31-
err = handler.Handle(ctx, &event)
32-
if err != nil {
31+
err2 := handler.Handle(ctx, &event)
32+
if err2 != nil {
3333
log.Printf("[event handler] failed to Handle workflow event %s", err) // ERROR
3434
}
3535
}

0 commit comments

Comments
 (0)