mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
raft: use empty slice in unstableEntries in log.go
This commit is contained in:
parent
bc0e72acb9
commit
0a46c70f5d
@ -133,7 +133,7 @@ func (l *raftLog) unstableEntries() []pb.Entry {
|
||||
if len(l.unstableEnts) == 0 {
|
||||
return nil
|
||||
}
|
||||
return append([]pb.Entry(nil), l.unstableEnts...)
|
||||
return append([]pb.Entry{}, l.unstableEnts...)
|
||||
}
|
||||
|
||||
// nextEnts returns all the available entries for execution.
|
||||
|
Loading…
x
Reference in New Issue
Block a user