don't set max readers for livesets

This commit is contained in:
vyzo 2021-01-20 20:52:18 +02:00
parent 58a8434825
commit 5b4e6b7b26

View File

@ -35,9 +35,9 @@ func NewLiveSetEnv(path string) (*lmdb.Env, error) {
if err = env.SetMaxDBs(2); err != nil {
return nil, fmt.Errorf("failed to set LMDB max dbs: %w", err)
}
if err = env.SetMaxReaders(1); err != nil {
return nil, fmt.Errorf("failed to set LMDB max readers: %w", err)
}
// if err = env.SetMaxReaders(1); err != nil {
// return nil, fmt.Errorf("failed to set LMDB max readers: %w", err)
// }
if st, err := os.Stat(path); os.IsNotExist(err) {
if err := os.MkdirAll(path, 0777); err != nil {