Skip to content
This repository was archived by the owner on Jan 20, 2026. It is now read-only.

Commit 65bef6a

Browse files
committed
Add config
1 parent 3abc947 commit 65bef6a

1 file changed

Lines changed: 9 additions & 8 deletions

File tree

sc/store.go

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,15 @@ func NewCommitStore(homeDir string, logger logger.Logger, config config.StateCom
2525
scDir = config.Directory
2626
}
2727
opts := memiavl.Options{
28-
Dir: utils.GetCommitStorePath(scDir),
29-
ZeroCopy: config.ZeroCopy,
30-
AsyncCommitBuffer: config.AsyncCommitBuffer,
31-
SnapshotInterval: config.SnapshotInterval,
32-
SnapshotKeepRecent: config.SnapshotKeepRecent,
33-
SnapshotWriterLimit: config.SnapshotWriterLimit,
34-
CacheSize: config.CacheSize,
35-
CreateIfMissing: true,
28+
Dir: utils.GetCommitStorePath(scDir),
29+
ZeroCopy: config.ZeroCopy,
30+
AsyncCommitBuffer: config.AsyncCommitBuffer,
31+
SnapshotInterval: config.SnapshotInterval,
32+
SnapshotKeepRecent: config.SnapshotKeepRecent,
33+
SnapshotWriterLimit: config.SnapshotWriterLimit,
34+
CacheSize: config.CacheSize,
35+
CreateIfMissing: true,
36+
OnlyAllowExportOnSnapshotVersion: config.OnlyAllowExportOnSnapshotVersion,
3637
}
3738
commitStore := &CommitStore{
3839
logger: logger,

0 commit comments

Comments
 (0)