mirror of
https://github.com/kaspanet/kaspad.git
synced 2025-07-06 12:52:31 +00:00
Remove explicit garbage collection.
This commit is contained in:
parent
19880b177e
commit
83b1e74d6c
@ -15,7 +15,6 @@ import (
|
|||||||
"github.com/conformal/goleveldb/leveldb/opt"
|
"github.com/conformal/goleveldb/leveldb/opt"
|
||||||
"github.com/conformal/seelog"
|
"github.com/conformal/seelog"
|
||||||
"os"
|
"os"
|
||||||
"runtime"
|
|
||||||
"sync"
|
"sync"
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -548,7 +547,6 @@ func (db *LevelDb) processBatches() error {
|
|||||||
}
|
}
|
||||||
db.lbatch.Reset()
|
db.lbatch.Reset()
|
||||||
db.txUpdateMap = map[btcwire.ShaHash]*txUpdateObj{}
|
db.txUpdateMap = map[btcwire.ShaHash]*txUpdateObj{}
|
||||||
runtime.GC()
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return nil
|
return nil
|
||||||
|
Loading…
x
Reference in New Issue
Block a user