Fix function signature (#3070)
This commit is contained in:
1 parent
2b7accac84
commit
b7d810e475
2 files changed
+4
-4
No files matched your search
@@ -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() {
|
||||
|
||||
Reference in new issue
Block a user