forked from TrueCloudLab/frostfs-node
[#761] cmd/node: Rename reBootstrapEnabled
to needBootstrap
`reBootstrapEnabled` state var is not used. It is going to be used to decide whether to bootstrap node or not. Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
parent
3c78890b97
commit
05d5b724a9
1 changed files with 2 additions and 2 deletions
|
@ -156,7 +156,7 @@ type cfgNetmap struct {
|
||||||
|
|
||||||
state *networkState
|
state *networkState
|
||||||
|
|
||||||
reBootstrapEnabled bool
|
needBootstrap bool
|
||||||
reBoostrapTurnedOff *atomic.Bool // managed by control service in runtime
|
reBoostrapTurnedOff *atomic.Bool // managed by control service in runtime
|
||||||
startEpoch uint64 // epoch number when application is started
|
startEpoch uint64 // epoch number when application is started
|
||||||
}
|
}
|
||||||
|
@ -258,7 +258,7 @@ func initCfg(path string) *cfg {
|
||||||
scriptHash: contractsconfig.Netmap(appCfg),
|
scriptHash: contractsconfig.Netmap(appCfg),
|
||||||
state: state,
|
state: state,
|
||||||
workerPool: netmapWorkerPool,
|
workerPool: netmapWorkerPool,
|
||||||
reBootstrapEnabled: !relayOnly,
|
needBootstrap: !relayOnly,
|
||||||
reBoostrapTurnedOff: atomic.NewBool(relayOnly),
|
reBoostrapTurnedOff: atomic.NewBool(relayOnly),
|
||||||
},
|
},
|
||||||
cfgGRPC: cfgGRPC{
|
cfgGRPC: cfgGRPC{
|
||||||
|
|
Loading…
Reference in a new issue