mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2025-01-01 00:31:21 +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 {
|
func (ii *InvertedIndex) Flush() error {
|
||||||
|
if ii.w == nil {
|
||||||
|
return nil
|
||||||
|
}
|
||||||
if err := ii.w.flush(ii.tx); err != nil {
|
if err := ii.w.flush(ii.tx); err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user