Explorar o código

eth: reduced max open files for LevelDB

obscuren %!s(int64=10) %!d(string=hai) anos
pai
achega
207bd55751
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      eth/backend.go

+ 1 - 1
eth/backend.go

@@ -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)
 	const dbCount = 3
-	ethdb.OpenFileLimit = 256 / (dbCount + 1)
+	ethdb.OpenFileLimit = 128 / (dbCount + 1)
 
 	newdb := config.NewDB
 	if newdb == nil {