mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2025-01-16 15:48:46 +00:00
e3: nil writer fix (#687)
This commit is contained in:
parent
5f9bd992a1
commit
37cdd12e5b
@ -422,6 +422,9 @@ func (h *History) Flush() error {
|
|||||||
if err := h.InvertedIndex.Flush(); err != nil {
|
if err := h.InvertedIndex.Flush(); err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
if h.w == nil {
|
||||||
|
return nil
|
||||||
|
}
|
||||||
if err := h.w.flush(h.tx); err != nil {
|
if err := h.w.flush(h.tx); err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user