fix max readers for tracking store

This commit is contained in:
vyzo 2020-12-01 18:57:31 +02:00
parent 1a23b1f6af
commit 76d6edbb52

View File

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