diff --git a/consul/discovery.go b/consul/discovery.go index 174ff16..69e4d86 100644 --- a/consul/discovery.go +++ b/consul/discovery.go @@ -108,8 +108,10 @@ func (s *Service) Unregister() error { } func (s *Service) Connect() (*connect.Service, error) { - fmt.Printf("CONNECT SERVER: %s\n", s.Name) - svc, err := connect.NewService(s.Name, s.client) + // srvName := s.Name + srvName := "egommerce" + fmt.Printf("CONNECT SERVER: %s\n", srvName) + svc, err := connect.NewService(srvName, s.client) s.connect = svc cnf := svc.ServerTLSConfig() for k, c := range cnf.Certificates {