fix: graceful shutdown (#1873)

status-code-override
hoslo 3 years ago committed by chenzhihui
parent 13d3da62ac
commit 92357bc162
  1. 3
      app.go

@ -98,7 +98,8 @@ func (a *App) Run() error {
wg.Add(1) wg.Add(1)
eg.Go(func() error { eg.Go(func() error {
wg.Done() wg.Done()
return srv.Start(ctx) tctx := NewContext(context.Background(), a)
return srv.Start(tctx)
}) })
} }
wg.Wait() wg.Wait()

Loading…
Cancel
Save