1
0
Fork 0

Revert changes to Disco client

master
Philip O'Toole 5 years ago
parent de379a883c
commit 9499a7f92d

@ -354,7 +354,7 @@ func determineJoinAddresses() ([]string, error) {
if discoID != "" {
log.Printf("registering with Discovery Service at %s with ID %s", discoURL, discoID)
c := disco.New(discoURL)
r, err := c.Register(discoID, "http", apiAdv)
r, err := c.Register(discoID, apiAdv)
if err != nil {
return nil, err
}

@ -40,9 +40,9 @@ func (c *Client) URL() string {
// Register attempts to register with the Discovery Service, using the given
// proto and address.
func (c *Client) Register(id, proto, addr string) (*Response, error) {
func (c *Client) Register(id, addr string) (*Response, error) {
m := map[string]string{
"addr": fmt.Sprintf("%s:%s", proto, addr),
"addr": addr,
}
url := c.registrationURL(c.url, id)

Loading…
Cancel
Save