Quellcode durchsuchen

Fixed incorrect if statement

Daniel Cannon vor 10 Jahren
Ursprung
Commit
50839ee41f
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  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 ""
 	}