From 8d884eebda669d354d187e9e4a8ab3f32618d0f0 Mon Sep 17 00:00:00 2001 From: Piotr Biernat Date: Sat, 1 Jul 2023 18:01:48 +0200 Subject: [PATCH] consul debug --- consul/discovery.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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 {