wait for all sub routines to finish

simple solution for waiting for all go sub routines to
finish before closing Grafana. We would use errGroup
here as well but I dont like spreading context's all
over the place.

closes #10131
This commit is contained in:
bergquist
2017-12-11 08:53:06 +01:00
parent 0c5ef1453d
commit f7ed24475c
4 changed files with 41 additions and 42 deletions
+1 -1
View File
@@ -95,7 +95,7 @@ func (hs *HttpServer) Start(ctx context.Context) error {
func (hs *HttpServer) Shutdown(ctx context.Context) error {
err := hs.httpSrv.Shutdown(ctx)
hs.log.Info("stopped http server")
hs.log.Info("Stopped HTTP server")
return err
}