From 2bc6e4327e5ca9d46a4c92423ff435bf9eb797d0 Mon Sep 17 00:00:00 2001 From: pb Date: Wed, 4 Sep 2024 17:29:00 +0200 Subject: [PATCH] change to fit update to oclib --- main.go | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/main.go b/main.go index c90b5d1..57aef83 100644 --- a/main.go +++ b/main.go @@ -3,16 +3,21 @@ package main import ( "fmt" - conf "oc-schedulerd/conf" + "oc-schedulerd/conf" "oc-schedulerd/daemons" oclib "cloud.o-forge.io/core/oc-lib" - "cloud.o-forge.io/core/oc-lib/tools" ) func main() { - tools.SetConfig(conf.GetConfig().MongoUrl, "DC_myDC", "") - oclib.Init("oc-schedulerd","","") + oclib.SetConfig( + conf.GetConfig().MongoUrl, + conf.GetConfig().MongoUrl, + conf.GetConfig().NatsUrl, + conf.GetConfig().LokiUrl, + conf.GetConfig().Logs, + ) + oclib.Init("oc-schedulerd") sch_mngr := daemons.ScheduleManager{Logger: oclib.GetLogger()} exe_mngr := daemons.ExecutionManager{}