From d29bd0810b406380819bd47e98e2e82d6a21046d Mon Sep 17 00:00:00 2001 From: Piotr Biernat Date: Sat, 20 Jul 2024 19:55:33 +0200 Subject: [PATCH] debug fix --- consul/discovery.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/consul/discovery.go b/consul/discovery.go index ed89c21..b7d1e01 100644 --- a/consul/discovery.go +++ b/consul/discovery.go @@ -25,8 +25,8 @@ type Service struct { connect *connect.Service kv *consul.KV - hcTicker *time.Ticker - ttlTicker *time.Ticker + // hcTicker *time.Ticker + // ttlTicker *time.Ticker } var ErrServiceUnavailable = fmt.Errorf("Service is unavailable") @@ -90,6 +90,8 @@ func (s *Service) Register() error { // DestinationServiceName: s.Name, // }, Check: &consul.AgentServiceCheck{ + Interval: "5s", + Timeout: "1s", TTL: s.ttl.String(), Status: "passing", DeregisterCriticalServiceAfter: "10s",