Use separate config for Retrieval Filter

This commit is contained in:
Ingar Shu 2020-10-16 08:30:55 -07:00
parent 0b7dc6971d
commit d0e4150cea
No known key found for this signature in database
GPG Key ID: BE3D9CE79F22E769
2 changed files with 6 additions and 2 deletions

View File

@ -486,7 +486,10 @@ func ConfigStorageMiner(c interface{}) Option {
If(cfg.Dealmaking.Filter != "", If(cfg.Dealmaking.Filter != "",
Override(new(dtypes.StorageDealFilter), modules.BasicDealFilter(dealfilter.CliStorageDealFilter(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)), Override(new(storagemarket.StorageProviderNode), storageadapter.NewProviderNodeAdapter(&cfg.Fees)),

View File

@ -46,6 +46,7 @@ type DealmakingConfig struct {
ExpectedSealDuration Duration ExpectedSealDuration Duration
Filter string Filter string
RetrievalFilter string
} }
type SealingConfig struct { type SealingConfig struct {