Parcourir la source

Fixed incorrect if statement

Daniel Cannon il y a 10 ans
Parent
commit
50839ee41f
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  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 ""
 	}