From 840974be0c6e4b2bc7c2bc41876430e7476a7a05 Mon Sep 17 00:00:00 2001 From: Piotr Biernat Date: Thu, 1 Dec 2022 08:20:27 +0100 Subject: [PATCH] consul fix --- consul/discovery.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/consul/discovery.go b/consul/discovery.go index d273622..749f444 100644 --- a/consul/discovery.go +++ b/consul/discovery.go @@ -31,7 +31,7 @@ func NewService(serverAddr, appID, appName, ip, domain string, appPort int) (*Se s.Address = domain s.IP = ip s.Port = appPort - s.TTL = time.Second * 15 + s.TTL = time.Second * 14 client, err := consul.NewClient(newClientConfig(serverAddr)) if err != nil {