Skip to content

Commit

Permalink
fix: correct source hook to be pre-stop hook
Browse files Browse the repository at this point in the history
  • Loading branch information
alexec committed Jul 16, 2021
1 parent 5544da5 commit af46d66
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion runner/sidecar/sources.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ func connectSources(ctx context.Context, toMain func(context.Context, []byte) er
}
if x, ok := sources[sourceName].(io.Closer); ok {
logger.Info("adding pre-stop hook", "source", sourceName)
addStopHook(func(ctx context.Context) error {
addPreStopHook(func(ctx context.Context) error {
logger.Info("closing", "source", sourceName)
return x.Close()
})
Expand Down

0 comments on commit af46d66

Please sign in to comment.