Compare commits

...

2 Commits

Author SHA1 Message Date
f9331deec1 consul debug 2023-07-02 01:46:11 +02:00
c29bb94c3d consul debug 2023-07-02 01:32:45 +02:00

View File

@@ -109,7 +109,7 @@ func (s *Service) Unregister() error {
func (s *Service) Connect() (*connect.Service, error) {
// srvName := s.Name
srvName := "egommerce"
srvName := s.Name
fmt.Printf("CONNECT SERVER: %s\n", srvName)
svc, err := connect.NewService(srvName, s.client)
s.connect = svc
@@ -138,6 +138,7 @@ func (s *Service) healthCheck() (bool, error) {
fmt.Printf("Sending HEALTH CHECK request to: %s\n", healthUrl)
resp, err := client.Do(req)
if err != nil {
fmt.Printf("Sending HEALTH CHECK request error: %v\n", err)
return false
}
defer resp.Body.Close()