Pārlūkot izejas kodu

ring describer: fix getHostInfo (#1014)

Use the correct *HostInfo in the comparison

Fixes #1013
Vincent Rischmann 8 gadi atpakaļ
vecāks
revīzija
93711fb900
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  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
 			}