Skip to content

Commit

Permalink
clean args context for useless.
Browse files Browse the repository at this point in the history
Signed-off-by: zhanluxianshen <irelandabby883@gmail.com>
  • Loading branch information
zhanluxianshen committed Apr 14, 2024
1 parent 1c5f633 commit 0167c75
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 0167c75

Please sign in to comment.