File tree 1 file changed +8
-8
lines changed
1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -28,21 +28,21 @@ go get -u github.com/Talento90/health
28
28
29
29
// Register external dependencies
30
30
h.RegisterChecker("redis", redisDb)
31
- h.RegisterChecker("mongo", mongoDb)
32
- h.RegisterChecker("external_api", api)
31
+ h.RegisterChecker("mongo", mongoDb)
32
+ h.RegisterChecker("external_api", api)
33
33
34
34
// Get service health status
35
35
s := h.GetStatus()
36
36
37
37
// Listen interrupt OS signals for graceful shutdown
38
38
var gracefulShutdown = make(chan os.Signal)
39
-
40
- signal.Notify(gracefulShutdown, syscall.SIGTERM)
41
- signal.Notify(gracefulShutdown, syscall.SIGINT)
39
+
40
+ signal.Notify(gracefulShutdown, syscall.SIGTERM)
41
+ signal.Notify(gracefulShutdown, syscall.SIGINT)
42
42
43
43
go func() {
44
- <-gracefulShutdown
45
- health.Shutdown()
44
+ <-gracefulShutdown
45
+ health.Shutdown()
46
46
47
47
// Close Databases gracefully
48
48
// Close HttpServer gracefully
@@ -109,4 +109,4 @@ go get -u github.com/Talento90/health
109
109
}
110
110
}
111
111
}
112
- ```
112
+ ```
You can’t perform that action at this time.
0 commit comments