From 1070ad2289fc82a8c885ee90e5f536d5672b6b58 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Magiera?= Date: Thu, 21 Jan 2021 22:20:16 +0100 Subject: [PATCH] storagefsm: Drop unused TargetWaitDealsSectors --- extern/storage-sealing/sealiface/config.go | 2 -- node/config/def.go | 4 ---- node/modules/storageminer.go | 2 -- 3 files changed, 8 deletions(-) diff --git a/extern/storage-sealing/sealiface/config.go b/extern/storage-sealing/sealiface/config.go index 4e0f51202..945565562 100644 --- a/extern/storage-sealing/sealiface/config.go +++ b/extern/storage-sealing/sealiface/config.go @@ -15,6 +15,4 @@ type Config struct { MaxSealingSectorsForDeals uint64 WaitDealsDelay time.Duration - - TargetWaitDealsSectors uint64 } diff --git a/node/config/def.go b/node/config/def.go index 716e50602..6a494fd96 100644 --- a/node/config/def.go +++ b/node/config/def.go @@ -68,9 +68,6 @@ type SealingConfig struct { // Keep this many sectors in sealing pipeline, start CC if needed // 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 } @@ -191,7 +188,6 @@ func DefaultStorageMiner() *StorageMiner { MaxSealingSectors: 0, MaxSealingSectorsForDeals: 0, WaitDealsDelay: Duration(time.Hour * 6), - TargetWaitDealsSectors: 2, }, Storage: sectorstorage.SealerConfig{ diff --git a/node/modules/storageminer.go b/node/modules/storageminer.go index 64f62d6ae..30f84aeaf 100644 --- a/node/modules/storageminer.go +++ b/node/modules/storageminer.go @@ -805,7 +805,6 @@ func NewSetSealConfigFunc(r repo.LockedRepo) (dtypes.SetSealingConfigFunc, error MaxSealingSectors: cfg.MaxSealingSectors, MaxSealingSectorsForDeals: cfg.MaxSealingSectorsForDeals, WaitDealsDelay: config.Duration(cfg.WaitDealsDelay), - TargetWaitDealsSectors: cfg.TargetWaitDealsSectors, } }) return @@ -820,7 +819,6 @@ func NewGetSealConfigFunc(r repo.LockedRepo) (dtypes.GetSealingConfigFunc, error MaxSealingSectors: cfg.Sealing.MaxSealingSectors, MaxSealingSectorsForDeals: cfg.Sealing.MaxSealingSectorsForDeals, WaitDealsDelay: time.Duration(cfg.Sealing.WaitDealsDelay), - TargetWaitDealsSectors: cfg.Sealing.TargetWaitDealsSectors, } }) return