소스 검색

Fixed incorrect if statement

Daniel Cannon 10 년 전
부모
커밋
50839ee41f
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      hostpool.go

+ 1 - 1
hostpool.go

@@ -146,7 +146,7 @@ func (p *standardHostPool) getRoundRobin() string {
 	}
 	}
 
 
 	// all hosts are down and returnUnhealhy is false then return no host
 	// all hosts are down and returnUnhealhy is false then return no host
-	if p.returnUnhealthy {
+	if !p.returnUnhealthy {
 		return ""
 		return ""
 	}
 	}