Jelajahi Sumber

Fixed incorrect if statement

Daniel Cannon 10 tahun lalu
induk
melakukan
50839ee41f
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  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 ""
 	}