Merge pull request #4879 from filecoin-project/fix/4833

Fix MaxSealingSectrosForDeals getting reset to 0
This commit is contained in:
Łukasz Magiera 2020-11-17 23:41:22 +01:00 committed by GitHub
commit 3536ec9f85
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -725,9 +725,10 @@ func NewSetSealConfigFunc(r repo.LockedRepo) (dtypes.SetSealingConfigFunc, error
return func(cfg sealiface.Config) (err error) {
err = mutateCfg(r, func(c *config.StorageMiner) {
c.Sealing = config.SealingConfig{
MaxWaitDealsSectors: cfg.MaxWaitDealsSectors,
MaxSealingSectors: cfg.MaxSealingSectors,
WaitDealsDelay: config.Duration(cfg.WaitDealsDelay),
MaxWaitDealsSectors: cfg.MaxWaitDealsSectors,
MaxSealingSectors: cfg.MaxSealingSectors,
MaxSealingSectorsForDeals: cfg.MaxSealingSectorsForDeals,
WaitDealsDelay: config.Duration(cfg.WaitDealsDelay),
}
})
return