Skip to content

Commit

Permalink
use node instead of address in discovery
Browse files Browse the repository at this point in the history
  • Loading branch information
ryane committed Apr 19, 2016
1 parent 637e900 commit 1abaf95
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion discover.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ func discover(client *consul.Client, r *discoveryRecord) {

var hosts []string
for _, svc := range services {
host := svc.Address
host := svc.Node
port := svc.ServicePort
location := fmt.Sprintf("%s:%d", host, port)
hosts = append(hosts, location)
Expand Down

0 comments on commit 1abaf95

Please sign in to comment.