Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| d484c0e3b0 |
@@ -115,7 +115,7 @@ func (s *Service) healthCheck() (bool, error) {
|
|||||||
alive := func() bool {
|
alive := func() bool {
|
||||||
client := &http.Client{}
|
client := &http.Client{}
|
||||||
healthUrl := s.GetFullAddr() + "health"
|
healthUrl := s.GetFullAddr() + "health"
|
||||||
fmt.Printf("Sending request to the %s", healthUrl)
|
fmt.Printf("Sending request to the %s\n", healthUrl)
|
||||||
req, err := http.NewRequest(http.MethodGet, healthUrl, nil)
|
req, err := http.NewRequest(http.MethodGet, healthUrl, nil)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
fmt.Printf("Failed to create new Consul request: %v\n", err)
|
fmt.Printf("Failed to create new Consul request: %v\n", err)
|
||||||
|
|||||||
Reference in New Issue
Block a user