mirror of
https://github.com/fluencelabs/tendermint
synced 2025-07-31 20:21:56 +00:00
errcheck: PR comment fixes
This commit is contained in:
committed by
Ethan Buchman
parent
b3c5933a23
commit
b75d4f73e7
@@ -117,6 +117,7 @@ func (cs *ConsensusState) catchupReplay(csHeight int) error {
|
||||
} else {
|
||||
defer func() {
|
||||
if err := gr.Close(); err != nil {
|
||||
cs.Logger.Error("Error closing wal Search", "err", err)
|
||||
return
|
||||
}
|
||||
}()
|
||||
|
@@ -492,6 +492,7 @@ func makeBlockchainFromWAL(wal WAL) ([]*types.Block, []*types.Commit, error) {
|
||||
}
|
||||
defer func() {
|
||||
if err := gr.Close(); err != nil {
|
||||
wal.Logger.Error("Error closing wal Search", "err", err)
|
||||
return
|
||||
}
|
||||
}()
|
||||
|
@@ -174,7 +174,6 @@ func (wal *baseWAL) SearchForEndHeight(height uint64) (gr *auto.GroupReader, fou
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
gr.Close()
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user