mirror of
https://gitlab.com/pulsechaincom/go-pulse.git
synced 2024-12-25 21:07:17 +00:00
eth: reduced max open files for LevelDB
This commit is contained in:
parent
84cd618585
commit
207bd55751
@ -213,7 +213,7 @@ func New(config *Config) (*Ethereum, error) {
|
|||||||
|
|
||||||
// Let the database take 3/4 of the max open files (TODO figure out a way to get the actual limit of the open files)
|
// Let the database take 3/4 of the max open files (TODO figure out a way to get the actual limit of the open files)
|
||||||
const dbCount = 3
|
const dbCount = 3
|
||||||
ethdb.OpenFileLimit = 256 / (dbCount + 1)
|
ethdb.OpenFileLimit = 128 / (dbCount + 1)
|
||||||
|
|
||||||
newdb := config.NewDB
|
newdb := config.NewDB
|
||||||
if newdb == nil {
|
if newdb == nil {
|
||||||
|
Loading…
Reference in New Issue
Block a user