File tree 1 file changed +7
-7
lines changed
1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -20,21 +20,21 @@ Health package simplifies the way you add health check to your service.
20
20
21
21
// Register external dependencies
22
22
h.RegisterChecker("redis", redisDb)
23
- h.RegisterChecker("mongo", mongoDb)
24
- h.RegisterChecker("external_api", api)
23
+ h.RegisterChecker("mongo", mongoDb)
24
+ h.RegisterChecker("external_api", api)
25
25
26
26
// Get service health status
27
27
s := h.GetStatus()
28
28
29
29
// Listen interrupt OS signals for graceful shutdown
30
30
var gracefulShutdown = make(chan os.Signal)
31
-
32
- signal.Notify(gracefulShutdown, syscall.SIGTERM)
33
- signal.Notify(gracefulShutdown, syscall.SIGINT)
31
+
32
+ signal.Notify(gracefulShutdown, syscall.SIGTERM)
33
+ signal.Notify(gracefulShutdown, syscall.SIGINT)
34
34
35
35
go func() {
36
- <-gracefulShutdown
37
- health.Shutdown()
36
+ <-gracefulShutdown
37
+ health.Shutdown()
38
38
39
39
// Close Databases gracefully
40
40
// Close HttpServer gracefully
You can’t perform that action at this time.
0 commit comments