forked from TrueCloudLab/frostfs-node
[#1764] neofs-node: Validate config before usage
Signed-off-by: Evgenii Stratonikov <evgeniy@morphbits.ru>
This commit is contained in:
parent
6f45cc81fc
commit
0fb5c51ac9
7 changed files with 153 additions and 15 deletions
|
@ -240,13 +240,7 @@ type cfgReputation struct {
|
|||
|
||||
var persistateSideChainLastBlockKey = []byte("side_chain_last_processed_block")
|
||||
|
||||
func initCfg(path string) *cfg {
|
||||
var p config.Prm
|
||||
|
||||
appCfg := config.New(p,
|
||||
config.WithConfigFile(path),
|
||||
)
|
||||
|
||||
func initCfg(appCfg *config.Config) *cfg {
|
||||
key := nodeconfig.Key(appCfg)
|
||||
|
||||
var logPrm logger.Prm
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue