remove enabled attribute

This commit is contained in:
Dan Ballard 2021-11-01 18:45:04 -07:00
parent 87b77fb2c7
commit a3ef61b050
2 changed files with 0 additions and 6 deletions

View File

@ -120,7 +120,6 @@ func (s *server) Run(acn connectivity.ACN) error {
}()
s.running = true
s.SetAttribute(AttrEnabled, "true")
return nil
}
@ -158,7 +157,6 @@ func (s *server) Stop() {
s.metricsPack.Stop()
s.running = false
s.SetAttribute(AttrEnabled, "false")
}
}

View File

@ -25,9 +25,6 @@ const (
// AttrDescription is the attribute key for a user set server description
AttrDescription = "description"
// AttrEnabled is the attribute key for user toggle of server being enabled
AttrEnabled = "enabled"
// AttrStorageType is used by clients that may need info about stored server config types/styles
AttrStorageType = "storageType"
)
@ -100,7 +97,6 @@ func initDefaultConfig(configDir, filename string, encrypted bool) *Config {
ReportingServerAddr: "",
}
config.Attributes[AttrAutostart] = "false"
config.Attributes[AttrEnabled] = "true"
k := new(ristretto255.Scalar)
b := make([]byte, 64)