don't set MaxReaders for tracking store

This commit is contained in:
vyzo 2021-01-29 13:02:01 +02:00
parent 5872f246ff
commit 2080e467ba

View File

@ -39,9 +39,9 @@ func NewTrackingStore(path string) (TrackingStore, error) {
if err = env.SetMaxDBs(1); err != nil {
return nil, fmt.Errorf("failed to set LMDB max dbs: %w", err)
}
if err = env.SetMaxReaders(2); err != nil {
return nil, fmt.Errorf("failed to set LMDB max readers: %w", err)
}
// if err = env.SetMaxReaders(2); 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 {