consul debug

This commit is contained in:
Piotr Biernat 2023-07-01 18:01:48 +02:00
parent 2f022919ff
commit 8d884eebda

View File

@ -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 {