Skip to content

Commit

Permalink
fix: sctx cause request ctx canceled during graceful shutdown (#3097)
Browse files Browse the repository at this point in the history
  • Loading branch information
LinEvil authored Dec 1, 2023
1 parent 396af2d commit abd1d35
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app.go
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ func (a *App) Run() error {
wg.Add(1)
eg.Go(func() error {
wg.Done() // here is to ensure server start has begun running before register, so defer is not needed
return srv.Start(sctx)
return srv.Start(NewContext(a.opts.ctx, a))
})
}
wg.Wait()
Expand Down

0 comments on commit abd1d35

Please sign in to comment.