mirror of
https://codeberg.org/cunicu/cunicu.git
synced 2025-12-24 06:18:40 +08:00
daemon: simplify feature registration
Signed-off-by: Steffen Vogel <post@steffenvogel.de>
This commit is contained in:
@@ -16,11 +16,7 @@ import (
|
||||
)
|
||||
|
||||
func init() {
|
||||
daemon.Features["cfgsync"] = &daemon.FeaturePlugin{
|
||||
New: New,
|
||||
Description: "Config synchronization",
|
||||
Order: 20,
|
||||
}
|
||||
daemon.RegisterFeature("cfgsync", "Config synchronization", New, 20)
|
||||
}
|
||||
|
||||
type Interface struct {
|
||||
|
||||
Reference in New Issue
Block a user