summaryrefslogtreecommitdiff
path: root/service
diff options
context:
space:
mode:
authorWolfy-J <[email protected]>2019-06-26 13:08:14 +0300
committerWolfy-J <[email protected]>2019-06-26 13:08:14 +0300
commit603239d5e39c5722e295c73eda552fe28f8378fd (patch)
treefea2a3226c69ff7c0629d289cf9c4a1c0e4f51cf /service
parent1fe259d1fba89732abe0229ce5b8c133b7a75981 (diff)
graceful shutdown of metrics service
Diffstat (limited to 'service')
-rw-r--r--service/metrics/service.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/service/metrics/service.go b/service/metrics/service.go
index 50b533f8..9d2a3dad 100644
--- a/service/metrics/service.go
+++ b/service/metrics/service.go
@@ -49,5 +49,5 @@ func (s *Service) Serve() error {
// Stop prometheus metrics service.
func (s *Service) Stop() {
// gracefully stop server
- s.http.Shutdown(context.Background())
+ go s.http.Shutdown(context.Background())
}