Explorar el Código

Fixed incorrect if statement

Daniel Cannon hace 10 años
padre
commit
50839ee41f
Se han modificado 1 ficheros con 1 adiciones y 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 ""
 	}