From eb1e8a9cb0921400bb6d4ed5e1d80d26d2c6b308 Mon Sep 17 00:00:00 2001 From: Piotr Biernat Date: Sun, 21 Jul 2024 21:11:34 +0200 Subject: [PATCH] consul registration update --- consul/discovery.go | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/consul/discovery.go b/consul/discovery.go index 5dc32fd..c1c7d87 100644 --- a/consul/discovery.go +++ b/consul/discovery.go @@ -144,11 +144,10 @@ func (s *Service) Connect() (*connect.Service, error) { // }) svc, err := connect.NewService(s.Name, s.client) s.connect = svc - cnf := svc.ServerTLSConfig() - fmt.Printf("CONNECT SERVER:: %s CONFIG:: %v\n", s.Name, cnf) - for k, c := range cnf.Certificates { - fmt.Printf("CONNECT CERT %d: %v", k, c) - } + fmt.Printf("CONNECT SERVER:: %s CERTS:: %v\n", s.Name, svc.ServerTLSConfig()) + // for k, c := range cnf.Certificates { + // fmt.Printf("CONNECT CERT %d: %v", k, c) + // } return svc, err }