Use separate config for Retrieval Filter
This commit is contained in:
parent
0b7dc6971d
commit
d0e4150cea
@ -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)),
|
||||||
|
@ -46,6 +46,7 @@ type DealmakingConfig struct {
|
|||||||
ExpectedSealDuration Duration
|
ExpectedSealDuration Duration
|
||||||
|
|
||||||
Filter string
|
Filter string
|
||||||
|
RetrievalFilter string
|
||||||
}
|
}
|
||||||
|
|
||||||
type SealingConfig struct {
|
type SealingConfig struct {
|
||||||
|
Loading…
Reference in New Issue
Block a user