register fix 2
This commit is contained in:
parent
4bedc5d926
commit
ce7e2bc75a
@ -67,7 +67,7 @@ func (s *Service) GetFullAddr() string {
|
|||||||
func (s *Service) Register() error {
|
func (s *Service) Register() error {
|
||||||
def := &consul.AgentServiceRegistration{
|
def := &consul.AgentServiceRegistration{
|
||||||
ID: s.GetID(),
|
ID: s.GetID(),
|
||||||
Kind: consul.ServiceKindConnectProxy,
|
// Kind: consul.ServiceKindConnectProxy,
|
||||||
Name: s.Name,
|
Name: s.Name,
|
||||||
Address: s.Address,
|
Address: s.Address,
|
||||||
Port: s.port,
|
Port: s.port,
|
||||||
@ -77,9 +77,9 @@ func (s *Service) Register() error {
|
|||||||
// Port: s.port,
|
// Port: s.port,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
Proxy: &consul.AgentServiceConnectProxyConfig{
|
// Proxy: &consul.AgentServiceConnectProxyConfig{
|
||||||
DestinationServiceName: s.Name + "dupa",
|
// DestinationServiceName: s.Name + "dupa",
|
||||||
},
|
// },
|
||||||
Check: &consul.AgentServiceCheck{
|
Check: &consul.AgentServiceCheck{
|
||||||
TTL: s.ttl.String(),
|
TTL: s.ttl.String(),
|
||||||
Status: "passing",
|
Status: "passing",
|
||||||
|
Loading…
Reference in New Issue
Block a user