Browse Source

raft: remove the init cap of log entries

Xiang Li 11 years ago
parent
commit
888ddacd3c
1 changed files with 1 additions and 1 deletions
  1. 1 1
      raft/log.go

+ 1 - 1
raft/log.go

@@ -13,7 +13,7 @@ type log struct {
 
 func newLog() *log {
 	return &log{
-		ents:    make([]Entry, 1, 1024),
+		ents:    make([]Entry, 1),
 		commit:  0,
 		applied: 0,
 	}