forked from TrueCloudLab/frostfs-node
[#867] governance: Add option to disable governance sync
Signed-off-by: Alex Vanin <alexey@nspcc.ru>
This commit is contained in:
parent
4661f65975
commit
f2a61451b7
2 changed files with 3 additions and 1 deletions
|
@ -120,4 +120,6 @@ func defaultConfiguration(cfg *viper.Viper) {
|
|||
|
||||
cfg.SetDefault("control.authorized_keys", []string{})
|
||||
cfg.SetDefault("control.grpc.endpoint", "")
|
||||
|
||||
cfg.SetDefault("governance.disable", false)
|
||||
}
|
||||
|
|
|
@ -603,7 +603,7 @@ func New(ctx context.Context, log *zap.Logger, cfg *viper.Viper) (*Server, error
|
|||
|
||||
var alphaSync event.Handler
|
||||
|
||||
if server.withoutMainNet {
|
||||
if server.withoutMainNet || cfg.GetBool("governance.disable") {
|
||||
alphaSync = func(event.Event) {
|
||||
log.Debug("alphabet keys sync is disabled")
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue