remove enabled attribute
This commit is contained in:
parent
87b77fb2c7
commit
a3ef61b050
|
@ -120,7 +120,6 @@ func (s *server) Run(acn connectivity.ACN) error {
|
||||||
}()
|
}()
|
||||||
|
|
||||||
s.running = true
|
s.running = true
|
||||||
s.SetAttribute(AttrEnabled, "true")
|
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -158,7 +157,6 @@ func (s *server) Stop() {
|
||||||
|
|
||||||
s.metricsPack.Stop()
|
s.metricsPack.Stop()
|
||||||
s.running = false
|
s.running = false
|
||||||
s.SetAttribute(AttrEnabled, "false")
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -25,9 +25,6 @@ const (
|
||||||
// AttrDescription is the attribute key for a user set server description
|
// AttrDescription is the attribute key for a user set server description
|
||||||
AttrDescription = "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 is used by clients that may need info about stored server config types/styles
|
||||||
AttrStorageType = "storageType"
|
AttrStorageType = "storageType"
|
||||||
)
|
)
|
||||||
|
@ -100,7 +97,6 @@ func initDefaultConfig(configDir, filename string, encrypted bool) *Config {
|
||||||
ReportingServerAddr: "",
|
ReportingServerAddr: "",
|
||||||
}
|
}
|
||||||
config.Attributes[AttrAutostart] = "false"
|
config.Attributes[AttrAutostart] = "false"
|
||||||
config.Attributes[AttrEnabled] = "true"
|
|
||||||
|
|
||||||
k := new(ristretto255.Scalar)
|
k := new(ristretto255.Scalar)
|
||||||
b := make([]byte, 64)
|
b := make([]byte, 64)
|
||||||
|
|
Loading…
Reference in New Issue