Skip to content

Commit 9f9c947

Browse files
authored
Update README.md
1 parent f6edfc0 commit 9f9c947

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

README.md

+8-8
Original file line numberDiff line numberDiff line change
@@ -28,21 +28,21 @@ go get -u github.com/Talento90/health
2828
2929
// Register external dependencies
3030
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)
3333
3434
// Get service health status
3535
s := h.GetStatus()
3636
3737
// Listen interrupt OS signals for graceful shutdown
3838
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)
4242
4343
go func() {
44-
<-gracefulShutdown
45-
health.Shutdown()
44+
<-gracefulShutdown
45+
health.Shutdown()
4646
4747
// Close Databases gracefully
4848
// Close HttpServer gracefully
@@ -109,4 +109,4 @@ go get -u github.com/Talento90/health
109109
}
110110
}
111111
}
112-
```
112+
```

0 commit comments

Comments
 (0)