Compare commits

..

2 Commits

Author SHA1 Message Date
9cb590bf7a consul register as sidecar_service fix 2023-07-03 00:36:07 +02:00
70c41dab96 consul register as sidecar_service fix 2023-07-02 23:04:26 +02:00

View File

@@ -73,8 +73,8 @@ func (s *Service) Register() error {
Tags: s.getTags(), Tags: s.getTags(),
Connect: &consul.AgentServiceConnect{ Connect: &consul.AgentServiceConnect{
SidecarService: &consul.AgentServiceRegistration{ SidecarService: &consul.AgentServiceRegistration{
Port: s.port, // Port: s.port,
} },
}, },
Check: &consul.AgentServiceCheck{ Check: &consul.AgentServiceCheck{
TTL: s.ttl.String(), TTL: s.ttl.String(),