consul fix
This commit is contained in:
parent
4050a3a13d
commit
840974be0c
@ -31,7 +31,7 @@ func NewService(serverAddr, appID, appName, ip, domain string, appPort int) (*Se
|
|||||||
s.Address = domain
|
s.Address = domain
|
||||||
s.IP = ip
|
s.IP = ip
|
||||||
s.Port = appPort
|
s.Port = appPort
|
||||||
s.TTL = time.Second * 15
|
s.TTL = time.Second * 14
|
||||||
|
|
||||||
client, err := consul.NewClient(newClientConfig(serverAddr))
|
client, err := consul.NewClient(newClientConfig(serverAddr))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
Loading…
Reference in New Issue
Block a user