Rename unused ctx parameters in server hooks

This commit is contained in:
2026-01-08 02:29:48 -08:00
parent 827f9743b8
commit 837c91e0dd

View File

@@ -64,13 +64,13 @@ func New(lc fx.Lifecycle, params Params) (*Server, error) {
} }
lc.Append(fx.Hook{ lc.Append(fx.Hook{
OnStart: func(ctx context.Context) error { OnStart: func(_ context.Context) error {
s.startupTime = time.Now() s.startupTime = time.Now()
go s.Run() go s.Run()
return nil return nil
}, },
OnStop: func(ctx context.Context) error { OnStop: func(_ context.Context) error {
if s.cancelFunc != nil { if s.cancelFunc != nil {
s.cancelFunc() s.cancelFunc()
} }