From 49a5a1ab848982ef4f712446d303cd653f303572 Mon Sep 17 00:00:00 2001 From: Sean Chittenden Date: Wed, 24 Feb 2016 20:25:50 -0800 Subject: [PATCH] cycleServer is a pure function, save the result --- consul/server_manager/server_manager.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/consul/server_manager/server_manager.go b/consul/server_manager/server_manager.go index ee3b09b4f8..37ae6f700a 100644 --- a/consul/server_manager/server_manager.go +++ b/consul/server_manager/server_manager.go @@ -213,7 +213,7 @@ func (sm *ServerManager) NotifyFailedServer(server *server_details.ServerDetails serverCfg = sm.getServerConfig() if len(serverCfg.servers) > 0 && serverCfg.servers[0] == server { - serverCfg.cycleServer() + serverCfg.servers = serverCfg.cycleServer() sm.saveServerConfig(serverCfg) } }