From ce7e2bc75a8314c304585ab89727b125246b9902 Mon Sep 17 00:00:00 2001 From: Piotr Biernat Date: Wed, 5 Jul 2023 23:37:55 +0200 Subject: [PATCH] register fix 2 --- consul/discovery.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/consul/discovery.go b/consul/discovery.go index e918d3a..d6ea550 100644 --- a/consul/discovery.go +++ b/consul/discovery.go @@ -66,8 +66,8 @@ func (s *Service) GetFullAddr() string { func (s *Service) Register() error { def := &consul.AgentServiceRegistration{ - ID: s.GetID(), - Kind: consul.ServiceKindConnectProxy, + ID: s.GetID(), + // Kind: consul.ServiceKindConnectProxy, Name: s.Name, Address: s.Address, Port: s.port, @@ -77,9 +77,9 @@ func (s *Service) Register() error { // Port: s.port, }, }, - Proxy: &consul.AgentServiceConnectProxyConfig{ - DestinationServiceName: s.Name + "dupa", - }, + // Proxy: &consul.AgentServiceConnectProxyConfig{ + // DestinationServiceName: s.Name + "dupa", + // }, Check: &consul.AgentServiceCheck{ TTL: s.ttl.String(), Status: "passing",