diff --git a/configobject/sync/sync.go b/configobject/configsync/configsync.go similarity index 99% rename from configobject/sync/sync.go rename to configobject/configsync/configsync.go index e788d68f..5d1c8e6c 100644 --- a/configobject/sync/sync.go +++ b/configobject/configsync/configsync.go @@ -1,4 +1,4 @@ -package sync +package configsync import ( "encoding/json" diff --git a/main.go b/main.go index 439a8207..ab8cdffc 100644 --- a/main.go +++ b/main.go @@ -8,7 +8,7 @@ import ( "git.icinga.com/icingadb/icingadb-main/config" "git.icinga.com/icingadb/icingadb-main/configobject/host" "git.icinga.com/icingadb/icingadb-main/configobject/service" - "git.icinga.com/icingadb/icingadb-main/configobject/sync" + "git.icinga.com/icingadb/icingadb-main/configobject/configsync" "git.icinga.com/icingadb/icingadb-main/prometheus" "git.icinga.com/icingadb/icingadb-main/supervisor" log "github.com/sirupsen/logrus" @@ -53,7 +53,7 @@ func main() { chHAHost := ha.RegisterNotificationListener() go func() { - super.ChErr <- sync.Operator(&super, chHAHost, &sync.Context{ + super.ChErr <- configsync.Operator(&super, chHAHost, &configsync.Context{ ObjectType: "host", Factory: host.NewHost, InsertStmt: host.BulkInsertStmt, @@ -64,8 +64,7 @@ func main() { chHAService := ha.RegisterNotificationListener() go func() { - - super.ChErr <- sync.Operator(&super, chHAService, &sync.Context{ + super.ChErr <- configsync.Operator(&super, chHAService, &configsync.Context{ ObjectType: "service", Factory: service.NewService, InsertStmt: service.BulkInsertStmt,