1
0
Fork 0
mirror of https://github.com/vbatts/imgsrv.git synced 2025-07-06 00:58:30 +00:00

*: fixes to be working on new abstractions

Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
This commit is contained in:
Vincent Batts 2017-04-07 13:29:07 -04:00
parent b80d34f423
commit 610cd418ca
Signed by: vbatts
GPG key ID: 10937E57733F1362
3 changed files with 43 additions and 10 deletions

View file

@ -1,6 +1,7 @@
package main
import (
"encoding/json"
"fmt"
"io"
"log"
@ -45,7 +46,7 @@ func runServer(c *config.Config) {
serverConfig.MongoDbName,
}
if err := du.Init(duConfig); err != nil {
if err := du.Init(json.Marshal(duConfig)); err != nil {
log.Fatal(err)
}
defer du.Close() // TODO this ought to catch a signal to cleanup