From 52793ac244a619d4cfa7e701baa6ab3b715a9bc8 Mon Sep 17 00:00:00 2001 From: Piotr Biernat Date: Thu, 6 Jul 2023 23:02:05 +0200 Subject: [PATCH] register fix 2 --- consul/discovery.go | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/consul/discovery.go b/consul/discovery.go index ec65760..d2c1814 100644 --- a/consul/discovery.go +++ b/consul/discovery.go @@ -72,14 +72,14 @@ func (s *Service) Register() error { Address: s.Address, Port: s.port, Tags: s.getTags(), - // Connect: &consul.AgentServiceConnect{ - // SidecarService: &consul.AgentServiceRegistration{ - // Port: s.port, - // }, - // }, - // Proxy: &consul.AgentServiceConnectProxyConfig{ - // DestinationServiceName: s.Name, - // }, + Connect: &consul.AgentServiceConnect{ + SidecarService: &consul.AgentServiceRegistration{ + Port: s.port, + }, + }, + Proxy: &consul.AgentServiceConnectProxyConfig{ + DestinationServiceName: s.Name, + }, Check: &consul.AgentServiceCheck{ TTL: s.ttl.String(), Status: "passing",