Explorar o código

Fixed incorrect if statement

Daniel Cannon %!s(int64=10) %!d(string=hai) anos
pai
achega
50839ee41f
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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 ""
 	}