Xiang Li 12 years ago
parent
commit
86e03d2298
2 changed files with 0 additions and 2 deletions
  1. 0 1
      raft_server.go
  2. 0 1
      raft_stats.go

+ 0 - 1
raft_server.go

@@ -282,7 +282,6 @@ func joinByMachine(s *raft.Server, machine string, scheme string) error {
 }
 
 func (r *raftServer) Stats() []byte {
-
 	r.serverStats.LeaderUptime = time.Now().Sub(r.serverStats.leaderStartTime).String()
 
 	queue := r.serverStats.sendRateQueue

+ 0 - 1
raft_stats.go

@@ -88,7 +88,6 @@ type raftPeerStats struct {
 
 // Succ function update the raftPeerStats with a successful send
 func (ps *raftPeerStats) Succ(d time.Duration) {
-
 	total := float64(ps.SuccCnt) * ps.AvgLatency
 	totalSquare := float64(ps.SuccCnt) * ps.avgLatencySquare