debug fix
This commit is contained in:
parent
b62c0e5a8c
commit
d29bd0810b
@ -25,8 +25,8 @@ type Service struct {
|
|||||||
connect *connect.Service
|
connect *connect.Service
|
||||||
kv *consul.KV
|
kv *consul.KV
|
||||||
|
|
||||||
hcTicker *time.Ticker
|
// hcTicker *time.Ticker
|
||||||
ttlTicker *time.Ticker
|
// ttlTicker *time.Ticker
|
||||||
}
|
}
|
||||||
|
|
||||||
var ErrServiceUnavailable = fmt.Errorf("Service is unavailable")
|
var ErrServiceUnavailable = fmt.Errorf("Service is unavailable")
|
||||||
@ -90,6 +90,8 @@ func (s *Service) Register() error {
|
|||||||
// DestinationServiceName: s.Name,
|
// DestinationServiceName: s.Name,
|
||||||
// },
|
// },
|
||||||
Check: &consul.AgentServiceCheck{
|
Check: &consul.AgentServiceCheck{
|
||||||
|
Interval: "5s",
|
||||||
|
Timeout: "1s",
|
||||||
TTL: s.ttl.String(),
|
TTL: s.ttl.String(),
|
||||||
Status: "passing",
|
Status: "passing",
|
||||||
DeregisterCriticalServiceAfter: "10s",
|
DeregisterCriticalServiceAfter: "10s",
|
||||||
|
Loading…
Reference in New Issue
Block a user