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:
parent
b80d34f423
commit
610cd418ca
3 changed files with 43 additions and 10 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue