Browse Source

ring describer: fix getHostInfo (#1014)

Use the correct *HostInfo in the comparison

Fixes #1013
Vincent Rischmann 8 years ago
parent
commit
93711fb900
1 changed files with 1 additions and 1 deletions
  1. 1 1
      host_source.go

+ 1 - 1
host_source.go

@@ -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
 			}