diff options
Diffstat (limited to 'src/helsinki.at/rhimportd/rhimportd.go')
-rw-r--r-- | src/helsinki.at/rhimportd/rhimportd.go | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/helsinki.at/rhimportd/rhimportd.go b/src/helsinki.at/rhimportd/rhimportd.go index 03d0340..7cdc67b 100644 --- a/src/helsinki.at/rhimportd/rhimportd.go +++ b/src/helsinki.at/rhimportd/rhimportd.go @@ -50,7 +50,13 @@ func main() { rhl.Println("Error reading configuration:", err) return } - defer conf.Cleanup() + + rddb, err := rhimport.NewRDDB(conf) + if err != nil { + rhl.Println("Error initializing Rivdenll DB:", err) + return + } + defer rddb.Cleanup() var wg sync.WaitGroup @@ -58,7 +64,7 @@ func main() { go func() { defer wg.Done() rhl.Println("start web-ctrl") - StartControlWeb(*web_addr_s, conf) + StartControlWeb(*web_addr_s, conf, rddb) rhl.Println("web-ctrl finished") }() |