fix: graceful shutdown (#1873)

pull/1880/head
hoslo 3 years ago committed by GitHub
parent 64bd619967
commit f68702a8c2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      app.go

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

Loading…
Cancel
Save