Fix function signature (#3070)

This commit is contained in:
Jeff Mitchell authored and GitHub committed 2023-03-09 20:31:20 -05:00
1 parent 2b7accac84
commit b7d810e475
2 files changed
+4 -4

No files matched your search

+2 -2
View File
@@ -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() {
+2 -2
View File
@@ -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() {