Compare commits

...

4 Commits

Author SHA1 Message Date
07c0cd6f2e debug fix 2024-07-20 19:59:12 +02:00
d29bd0810b debug fix 2024-07-20 19:55:33 +02:00
b62c0e5a8c debug fix 2024-07-20 19:03:21 +02:00
a9eb0d0732 debug fix 2024-07-20 18:19:56 +02:00

View File

@@ -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,7 +90,9 @@ func (s *Service) Register() error {
// DestinationServiceName: s.Name,
// },
Check: &consul.AgentServiceCheck{
TTL: s.ttl.String(),
Interval: "5s",
Timeout: "1s",
// TTL: s.ttl.String(),
Status: "passing",
DeregisterCriticalServiceAfter: "10s",
},