consul debug
This commit is contained in:
parent
2f022919ff
commit
8d884eebda
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user