瀏覽代碼

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
-	if p.returnUnhealthy {
+	if !p.returnUnhealthy {
 		return ""
 	}