Skip to content

Commit

Permalink
ring describer: fix getHostInfo (apache#1014)
Browse files Browse the repository at this point in the history
Use the correct *HostInfo in the comparison

Fixes apache#1013
  • Loading branch information
vrischmann authored and Zariel committed Oct 31, 2017
1 parent f5cee64 commit 93711fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion host_source.go
Original file line number Diff line number Diff line change
Expand Up @@ -632,7 +632,7 @@ func (r *ringDescriber) getHostInfo(ip net.IP, port int) (*HostInfo, error) {
return nil, err
}

if host.ConnectAddress().Equal(ip) {
if h.ConnectAddress().Equal(ip) {
host = h
break
}
Expand Down

0 comments on commit 93711fb

Please sign in to comment.