summaryrefslogtreecommitdiff
path: root/src/helsinki.at/rhimportd/rhimportd.go
diff options
context:
space:
mode:
authorChristian Pointner <equinox@helsinki.at>2015-12-07 16:16:40 (GMT)
committerChristian Pointner <equinox@helsinki.at>2015-12-08 00:34:53 (GMT)
commita1b290f026011276f9c16f6af390a2aceb2f9ccc (patch)
tree2f7be9167b918b16c82d3f71f057a610f6ca749e /src/helsinki.at/rhimportd/rhimportd.go
parent6e5d14f4a2189dbc0f0404c398d11878e356ecd7 (diff)
moved DB into seperate module
Diffstat (limited to 'src/helsinki.at/rhimportd/rhimportd.go')
-rw-r--r--src/helsinki.at/rhimportd/rhimportd.go10
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")
}()