Skip to content

Commit

Permalink
Merge pull request #14 from geniussportsgroup/develop
Browse files Browse the repository at this point in the history
New handler with a continuation function
  • Loading branch information
lrleon authored Apr 16, 2021
2 parents f3abb31 + 9d79552 commit a229666
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion simple_k8s.go
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,9 @@ func TerminationHandlerCont(timeout time.Duration, continuation func(pars ...int

time.Sleep(timeout)

continuation(pars...)
if continuation != nil {
continuation(pars...)
}

os.Exit(0)
}
Expand Down

0 comments on commit a229666

Please sign in to comment.