fix max readers for tracking store
This commit is contained in:
parent
1a23b1f6af
commit
76d6edbb52
@ -39,7 +39,7 @@ func NewTrackingStore(path string) (TrackingStore, error) {
|
|||||||
if err = env.SetMaxDBs(1); err != nil {
|
if err = env.SetMaxDBs(1); err != nil {
|
||||||
return nil, fmt.Errorf("failed to set LMDB max dbs: %w", err)
|
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)
|
return nil, fmt.Errorf("failed to set LMDB max readers: %w", err)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user