mirror of https://github.com/status-im/consul.git
EDYSLEXICMOMENT
This commit is contained in:
parent
b684b15d94
commit
ec25ad84a6
|
@ -289,7 +289,7 @@ func (sm *ServerManager) RebalanceServers() {
|
||||||
sc.shuffleServers()
|
sc.shuffleServers()
|
||||||
|
|
||||||
// Iterate through the shuffled server list to find a healthy server.
|
// Iterate through the shuffled server list to find a healthy server.
|
||||||
// Don't iterate on the list directly, this loop mutates server the
|
// Don't iterate on the list directly, this loop mutates the server
|
||||||
// list.
|
// list.
|
||||||
var foundHealthyServer bool
|
var foundHealthyServer bool
|
||||||
for i := 0; i < len(sc.servers); i++ {
|
for i := 0; i < len(sc.servers); i++ {
|
||||||
|
|
Loading…
Reference in New Issue