consul registration update

This commit is contained in:
Piotr Biernat 2024-07-21 21:11:34 +02:00
parent 2c797164e0
commit eb1e8a9cb0

View File

@ -144,11 +144,10 @@ func (s *Service) Connect() (*connect.Service, error) {
// }) // })
svc, err := connect.NewService(s.Name, s.client) svc, err := connect.NewService(s.Name, s.client)
s.connect = svc s.connect = svc
cnf := svc.ServerTLSConfig() fmt.Printf("CONNECT SERVER:: %s CERTS:: %v\n", s.Name, svc.ServerTLSConfig())
fmt.Printf("CONNECT SERVER:: %s CONFIG:: %v\n", s.Name, cnf) // for k, c := range cnf.Certificates {
for k, c := range cnf.Certificates { // fmt.Printf("CONNECT CERT %d: %v", k, c)
fmt.Printf("CONNECT CERT %d: %v", k, c) // }
}
return svc, err return svc, err
} }