Fix function signature (#3070)

pull/3071/head
Jeff Mitchell 3 years ago committed by GitHub
parent 2b7accac84
commit b7d810e475
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -48,7 +48,7 @@ var (
_ cli.CommandAutocomplete = (*Command)(nil)
)
var extraSelfTerminationConditionFuncs []func(context.Context, chan struct{})
var extraSelfTerminationConditionFuncs []func(*Command, chan struct{})
type Command struct {
*base.Server
@ -924,7 +924,7 @@ func (c *Command) Run(args []string) int {
}
for _, f := range extraSelfTerminationConditionFuncs {
f(c.Context, c.ServerSideShutdownCh)
f(c, c.ServerSideShutdownCh)
}
for !errorEncountered.Load() && !shutdownCompleted.Load() {

@ -41,7 +41,7 @@ var (
_ cli.CommandAutocomplete = (*Command)(nil)
)
var extraSelfTerminationConditionFuncs []func(context.Context, chan struct{})
var extraSelfTerminationConditionFuncs []func(*Command, chan struct{})
type Command struct {
*base.Server
@ -700,7 +700,7 @@ func (c *Command) WaitForInterrupt() int {
}
for _, f := range extraSelfTerminationConditionFuncs {
f(c.Context, c.ServerSideShutdownCh)
f(c, c.ServerSideShutdownCh)
}
for !shutdownCompleted.Load() {

Loading…
Cancel
Save