Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

clean args context for useless. #1189

Merged
merged 1 commit into from
Apr 23, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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