mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2025-01-01 00:31:21 +00:00
Close compressor (#491)
Co-authored-by: Alexey Sharp <alexeysharp@Alexeys-iMac.local>
This commit is contained in:
parent
a450f5c341
commit
bbf96d0580
@ -412,6 +412,7 @@ func (d *Domain) mergeFiles(files [][NumberOfTypes]*filesItem, r DomainRanges, m
|
|||||||
if err = comp.Compress(); err != nil {
|
if err = comp.Compress(); err != nil {
|
||||||
return outItems, err
|
return outItems, err
|
||||||
}
|
}
|
||||||
|
comp.Close()
|
||||||
comp = nil
|
comp = nil
|
||||||
if outItem.decompressor, err = compress.NewDecompressor(datPath); err != nil {
|
if outItem.decompressor, err = compress.NewDecompressor(datPath); err != nil {
|
||||||
return outItems, fmt.Errorf("merge %s remove vals decompressor(no val) %s [%d-%d]: %w", d.filenameBase, fType.String(), startTxNum, endTxNum, err)
|
return outItems, fmt.Errorf("merge %s remove vals decompressor(no val) %s [%d-%d]: %w", d.filenameBase, fType.String(), startTxNum, endTxNum, err)
|
||||||
|
Loading…
Reference in New Issue
Block a user