Unnest
This commit is contained in:
parent
fc31b463b1
commit
9a089482dc
|
@ -70,7 +70,9 @@ func (wal *WAL) Exists() bool {
|
|||
|
||||
// called in newStep and for each pass in receiveRoutine
|
||||
func (wal *WAL) Save(clm ConsensusLogMessageInterface) {
|
||||
if wal != nil {
|
||||
if wal == nil {
|
||||
return
|
||||
}
|
||||
if wal.light {
|
||||
// in light mode we only write new steps, timeouts, and our own votes (no proposals, block parts)
|
||||
if mi, ok := clm.(msgInfo); ok {
|
||||
|
@ -87,7 +89,6 @@ func (wal *WAL) Save(clm ConsensusLogMessageInterface) {
|
|||
if err != nil {
|
||||
PanicQ(Fmt("Error writing msg to consensus wal. Error: %v \n\nMessage: %v", err, clm))
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Must not be called concurrently with a write.
|
||||
|
|
Loading…
Reference in New Issue