mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2024-12-28 14:47:16 +00:00
e3: nil writer fix (#686)
This commit is contained in:
parent
95433c2151
commit
5f9bd992a1
@ -291,6 +291,9 @@ func (ii *InvertedIndex) FinishWrites() {
|
||||
}
|
||||
|
||||
func (ii *InvertedIndex) Flush() error {
|
||||
if ii.w == nil {
|
||||
return nil
|
||||
}
|
||||
if err := ii.w.flush(ii.tx); err != nil {
|
||||
return err
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user