Remove useless comment residual from decomposing functions

This commit is contained in:
Sean Chittenden 2016-03-29 10:51:32 -07:00
parent ec25ad84a6
commit 299d058d54
1 changed files with 0 additions and 3 deletions

View File

@ -162,7 +162,6 @@ func (sc *serverConfig) cycleServer() (servers []*server_details.ServerDetails)
func (sc *serverConfig) removeServerByKey(targetKey *server_details.Key) { func (sc *serverConfig) removeServerByKey(targetKey *server_details.Key) {
for i, s := range sc.servers { for i, s := range sc.servers {
if targetKey.Equal(s.Key()) { if targetKey.Equal(s.Key()) {
// Delete the target server
copy(sc.servers[i:], sc.servers[i+1:]) copy(sc.servers[i:], sc.servers[i+1:])
sc.servers[len(sc.servers)-1] = nil sc.servers[len(sc.servers)-1] = nil
sc.servers = sc.servers[:len(sc.servers)-1] sc.servers = sc.servers[:len(sc.servers)-1]
@ -173,7 +172,6 @@ func (sc *serverConfig) removeServerByKey(targetKey *server_details.Key) {
// shuffleServers shuffles the server list in place // shuffleServers shuffles the server list in place
func (sc *serverConfig) shuffleServers() { func (sc *serverConfig) shuffleServers() {
// Shuffle server list
for i := len(sc.servers) - 1; i > 0; i-- { for i := len(sc.servers) - 1; i > 0; i-- {
j := rand.Int31n(int32(i + 1)) j := rand.Int31n(int32(i + 1))
sc.servers[i], sc.servers[j] = sc.servers[j], sc.servers[i] sc.servers[i], sc.servers[j] = sc.servers[j], sc.servers[i]
@ -456,7 +454,6 @@ func (sm *ServerManager) Start() {
for { for {
select { select {
case <-sm.rebalanceTimer.C: case <-sm.rebalanceTimer.C:
//sm.logger.Printf("[INFO] server manager: Rebalancing server connections")
sm.RebalanceServers() sm.RebalanceServers()
sm.refreshServerRebalanceTimer() sm.refreshServerRebalanceTimer()