mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2025-01-08 12:01:20 +00:00
etl: collector.close nil ptr fix (#1003)
This commit is contained in:
parent
c7c31ee01f
commit
f1e19f0712
@ -239,10 +239,12 @@ func (c *Collector) Load(db kv.RwTx, toBucket string, loadFunc LoadFunc, args Tr
|
||||
}
|
||||
|
||||
func (c *Collector) reset() {
|
||||
if c.dataProviders != nil {
|
||||
for _, p := range c.dataProviders {
|
||||
p.Dispose()
|
||||
}
|
||||
c.dataProviders = nil
|
||||
}
|
||||
c.buf.Reset()
|
||||
c.allFlushed = false
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user