Skip to content

Commit

Permalink
fix: watcher sudden closing (#114)
Browse files Browse the repository at this point in the history
Signed-off-by: Gosha <[email protected]>
  • Loading branch information
gosharo authored Jul 27, 2023
1 parent 130e015 commit 4cc3f0f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/event_handler/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ func Start(ctx context.Context, stop context.CancelFunc, cfg *conf.GlobalConfig,
}
go func() {
for event := range watcher.ResultChan() {
err = handler.Handle(ctx, &event)
if err != nil {
err2 := handler.Handle(ctx, &event)
if err2 != nil {
log.Printf("[event handler] failed to Handle workflow event %s", err) // ERROR
}
}
Expand Down

0 comments on commit 4cc3f0f

Please sign in to comment.