storagefsm: Drop unused TargetWaitDealsSectors

This commit is contained in:
Łukasz Magiera 2021-01-21 22:20:16 +01:00
parent ec4deb7e28
commit 1070ad2289
3 changed files with 0 additions and 8 deletions

View File

@ -15,6 +15,4 @@ type Config struct {
MaxSealingSectorsForDeals uint64 MaxSealingSectorsForDeals uint64
WaitDealsDelay time.Duration WaitDealsDelay time.Duration
TargetWaitDealsSectors uint64
} }

View File

@ -68,9 +68,6 @@ type SealingConfig struct {
// Keep this many sectors in sealing pipeline, start CC if needed // Keep this many sectors in sealing pipeline, start CC if needed
// todo TargetSealingSectors uint64 // todo TargetSealingSectors uint64
// Try to keep this many sectors waiting for deals
TargetWaitDealsSectors uint64
// todo TargetSectors - stop auto-pleding new sectors after this many sectors are sealed, default CC upgrade for deals sectors if above // todo TargetSectors - stop auto-pleding new sectors after this many sectors are sealed, default CC upgrade for deals sectors if above
} }
@ -191,7 +188,6 @@ func DefaultStorageMiner() *StorageMiner {
MaxSealingSectors: 0, MaxSealingSectors: 0,
MaxSealingSectorsForDeals: 0, MaxSealingSectorsForDeals: 0,
WaitDealsDelay: Duration(time.Hour * 6), WaitDealsDelay: Duration(time.Hour * 6),
TargetWaitDealsSectors: 2,
}, },
Storage: sectorstorage.SealerConfig{ Storage: sectorstorage.SealerConfig{

View File

@ -805,7 +805,6 @@ func NewSetSealConfigFunc(r repo.LockedRepo) (dtypes.SetSealingConfigFunc, error
MaxSealingSectors: cfg.MaxSealingSectors, MaxSealingSectors: cfg.MaxSealingSectors,
MaxSealingSectorsForDeals: cfg.MaxSealingSectorsForDeals, MaxSealingSectorsForDeals: cfg.MaxSealingSectorsForDeals,
WaitDealsDelay: config.Duration(cfg.WaitDealsDelay), WaitDealsDelay: config.Duration(cfg.WaitDealsDelay),
TargetWaitDealsSectors: cfg.TargetWaitDealsSectors,
} }
}) })
return return
@ -820,7 +819,6 @@ func NewGetSealConfigFunc(r repo.LockedRepo) (dtypes.GetSealingConfigFunc, error
MaxSealingSectors: cfg.Sealing.MaxSealingSectors, MaxSealingSectors: cfg.Sealing.MaxSealingSectors,
MaxSealingSectorsForDeals: cfg.Sealing.MaxSealingSectorsForDeals, MaxSealingSectorsForDeals: cfg.Sealing.MaxSealingSectorsForDeals,
WaitDealsDelay: time.Duration(cfg.Sealing.WaitDealsDelay), WaitDealsDelay: time.Duration(cfg.Sealing.WaitDealsDelay),
TargetWaitDealsSectors: cfg.Sealing.TargetWaitDealsSectors,
} }
}) })
return return