drop unused field in log

pull/820/head
Xiang Li 2014-01-28 11:17:05 -05:00
parent 029b60f530
commit 1d7bc80fbe
1 changed files with 1 additions and 3 deletions

4
log.go
View File

@ -27,7 +27,6 @@ type Log struct {
mutex sync.RWMutex
startIndex uint64 // the index before the first entry in the Log entries
startTerm uint64
pLogEntry *protobuf.LogEntry
}
// The results of the applying a log entry.
@ -45,8 +44,7 @@ type logResult struct {
// Creates a new log.
func newLog() *Log {
return &Log{
entries: make([]*LogEntry, 0),
pLogEntry: &protobuf.LogEntry{},
entries: make([]*LogEntry, 0),
}
}