move DealmakingConfiger and SealingConfiger away from config/types.go

This commit is contained in:
Anton Evangelatov 2022-03-03 16:51:45 +01:00
parent 62e352ef88
commit 5734a39e8e
3 changed files with 27 additions and 42 deletions

View File

@ -340,14 +340,6 @@ see https://docs.filecoin.io/mine/lotus/miner-configuration/#using-filters-for-f
Comment: ``,
},
},
"DealmakingConfiger interface": []DocField{
{
Name: "GetDealmakingConfig()",
Type: "DealmakingConfig",
Comment: ``,
},
},
"FeeConfig": []DocField{
{
Name: "DefaultMaxFee",
@ -806,14 +798,6 @@ submitting proofs to the chain individually`,
Comment: ``,
},
},
"SealingConfiger interface": []DocField{
{
Name: "GetSealingConfig()",
Type: "SealingConfig",
Comment: ``,
},
},
"Splitstore": []DocField{
{
Name: "ColdStoreType",

View File

@ -0,0 +1,27 @@
package config
type DealmakingConfiger interface {
GetDealmakingConfig() DealmakingConfig
SetDealmakingConfig(DealmakingConfig)
}
func (c *StorageMiner) GetDealmakingConfig() DealmakingConfig {
return c.Dealmaking
}
func (c *StorageMiner) SetDealmakingConfig(other DealmakingConfig) {
c.Dealmaking = other
}
type SealingConfiger interface {
GetSealingConfig() SealingConfig
SetSealingConfig(SealingConfig)
}
func (c *StorageMiner) GetSealingConfig() SealingConfig {
return c.Sealing
}
func (c *StorageMiner) SetSealingConfig(other SealingConfig) {
c.Sealing = other
}

View File

@ -52,32 +52,6 @@ type StorageMiner struct {
DAGStore DAGStoreConfig
}
type DealmakingConfiger interface {
GetDealmakingConfig() DealmakingConfig
SetDealmakingConfig(DealmakingConfig)
}
func (c *StorageMiner) GetDealmakingConfig() DealmakingConfig {
return c.Dealmaking
}
func (c *StorageMiner) SetDealmakingConfig(other DealmakingConfig) {
c.Dealmaking = other
}
type SealingConfiger interface {
GetSealingConfig() SealingConfig
SetSealingConfig(SealingConfig)
}
func (c *StorageMiner) GetSealingConfig() SealingConfig {
return c.Sealing
}
func (c *StorageMiner) SetSealingConfig(other SealingConfig) {
c.Sealing = other
}
type DAGStoreConfig struct {
// Path to the dagstore root directory. This directory contains three
// subdirectories, which can be symlinked to alternative locations if