Skip to content

Commit aded675

Browse files
authored
improve documentation
1 parent 30964e0 commit aded675

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

README.md

+7-7
Original file line numberDiff line numberDiff line change
@@ -20,21 +20,21 @@ Health package simplifies the way you add health check to your service.
2020
2121
// Register external dependencies
2222
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)
2525
2626
// Get service health status
2727
s := h.GetStatus()
2828
2929
// Listen interrupt OS signals for graceful shutdown
3030
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)
3434
3535
go func() {
36-
<-gracefulShutdown
37-
health.Shutdown()
36+
<-gracefulShutdown
37+
health.Shutdown()
3838
3939
// Close Databases gracefully
4040
// Close HttpServer gracefully

0 commit comments

Comments
 (0)