Sfoglia il codice sorgente

Fixed incorrect if statement

Daniel Cannon 10 anni fa
parent
commit
50839ee41f
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  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 ""
 	}