raft: remove the init cap of log entries

This commit is contained in:
Xiang Li 2014-05-28 10:14:16 -07:00 committed by Yicheng Qin
parent 2ef9498d6f
commit 888ddacd3c

View File

@ -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,
}