Skip to content

Commit

Permalink
thread GCFrequency option into the splitstore config
Browse files Browse the repository at this point in the history
  • Loading branch information
vyzo committed Jul 26, 2021
1 parent 20f93a5 commit aa0bd51
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions node/modules/blockstore.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,10 @@ func SplitBlockstore(cfg *config.Chainstore) func(lc fx.Lifecycle, r repo.Locked
}

cfg := &splitstore.Config{
MarkSetType: cfg.Splitstore.MarkSetType,
DiscardColdBlocks: cfg.Splitstore.ColdStoreType == "discard",
HotStoreMessageRetention: cfg.Splitstore.HotStoreMessageRetention,
MarkSetType: cfg.Splitstore.MarkSetType,
DiscardColdBlocks: cfg.Splitstore.ColdStoreType == "discard",
HotStoreMessageRetention: cfg.Splitstore.HotStoreMessageRetention,
HotStoreMovingGCFrequency: cfg.Splitstore.HotStoreMovingGCFrequency,
}
ss, err := splitstore.Open(path, ds, hot, cold, cfg)
if err != nil {
Expand Down

0 comments on commit aa0bd51

Please sign in to comment.