daemon: simplify feature registration

Signed-off-by: Steffen Vogel <post@steffenvogel.de>
This commit is contained in:
Steffen Vogel
2022-10-14 08:27:45 +02:00
parent 102d260683
commit 9e4ef29d4e
8 changed files with 23 additions and 43 deletions

View File

@@ -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 {