Healthcheck listen on localhost (#138)

This commit is contained in:
Dmitriy 2022-12-29 01:39:30 +03:00 committed by GitHub
parent 112433e87a
commit c0879a379f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -28,7 +28,7 @@ func main() {
defer cancel() defer cancel()
// start health check service on port 11223 // start health check service on port 11223
healthcheck.New(healthcheck.ListenOn(":11223")).StartWithContext(ctx) healthcheck.New(healthcheck.ListenOn("127.0.0.1:11223")).StartWithContext(ctx)
service := server.Server{} service := server.Server{}
if err := service.Setup(ctx); err != nil { if err := service.Setup(ctx); err != nil {