Skip to content

Commit

Permalink
clean args context for useless. (#1189)
Browse files Browse the repository at this point in the history
/kind cleanup

clean args context for useless.

Signed-off-by: zhanluxianshen <irelandabby883@gmail.com>
  • Loading branch information
zhanluxianshen committed Apr 23, 2024
1 parent 95cbe83 commit ebf6296
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions signal.go
Expand Up @@ -79,7 +79,7 @@ type signalReceivers struct {
wait []chan ShutdownSignal
}

func (recv *signalReceivers) relayer(ctx context.Context) {
func (recv *signalReceivers) relayer() {
defer func() {
recv.finished <- struct{}{}
}()
Expand Down Expand Up @@ -112,7 +112,7 @@ func (recv *signalReceivers) Start(ctx context.Context) {
recv.finished = make(chan struct{}, 1)
recv.shutdown = make(chan struct{}, 1)
recv.notify(recv.signals, os.Interrupt, _sigINT, _sigTERM)
go recv.relayer(ctx)
go recv.relayer()
}

func (recv *signalReceivers) Stop(ctx context.Context) error {
Expand Down

0 comments on commit ebf6296

Please sign in to comment.