Skip to content

Commit

Permalink
use client URLs
Browse files Browse the repository at this point in the history
  • Loading branch information
matt-deboer committed Mar 23, 2017
1 parent d4eeeae commit 9318d08
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/discovery/discovery.go
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ func (d *Discovery) resolveMembersAndAPI(expectedMembers []etcd.Member,
continue
}

uptime, err = getUptime(etcdClient.Endpoints()[0])
uptime, err = getUptime(member.ClientURLs[0])
if err != nil {
if log.GetLevel() >= log.DebugLevel {
log.Debugf("Error listing leader uptime %s %v, %v", member.Name, member.ClientURLs, err)
Expand Down

0 comments on commit 9318d08

Please sign in to comment.