Skip to content

Commit

Permalink
Use separate config for Retrieval Filter
Browse files Browse the repository at this point in the history
  • Loading branch information
ingar committed Oct 16, 2020
1 parent 0b7dc69 commit d0e4150
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
5 changes: 4 additions & 1 deletion node/builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -486,7 +486,10 @@ func ConfigStorageMiner(c interface{}) Option {

If(cfg.Dealmaking.Filter != "",
Override(new(dtypes.StorageDealFilter), modules.BasicDealFilter(dealfilter.CliStorageDealFilter(cfg.Dealmaking.Filter))),
Override(new(dtypes.RetrievalDealFilter), modules.RetrievalDealFilter(dealfilter.CliRetrievalDealFilter(cfg.Dealmaking.Filter))),
),

If(cfg.Dealmaking.RetrievalFilter != "",
Override(new(dtypes.RetrievalDealFilter), modules.RetrievalDealFilter(dealfilter.CliRetrievalDealFilter(cfg.Dealmaking.RetrievalFilter))),
),

Override(new(storagemarket.StorageProviderNode), storageadapter.NewProviderNodeAdapter(&cfg.Fees)),
Expand Down
3 changes: 2 additions & 1 deletion node/config/def.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@ type DealmakingConfig struct {
PieceCidBlocklist []cid.Cid
ExpectedSealDuration Duration

Filter string
Filter string
RetrievalFilter string
}

type SealingConfig struct {
Expand Down

0 comments on commit d0e4150

Please sign in to comment.