summaryrefslogtreecommitdiff
path: root/system/db/init.go
diff options
context:
space:
mode:
authorSteve Manuel <nilslice@gmail.com>2016-10-29 01:33:33 -0700
committerSteve Manuel <nilslice@gmail.com>2016-10-29 01:33:33 -0700
commitb6eb040045fcfeb39dda4fcd440d2be184c8e715 (patch)
treef33b8374b9addf5f3a936ed0d555d0ea5d2904a1 /system/db/init.go
parent30ea59f0d1cae4229490596efba22f9d9b298f4c (diff)
adding db/analytics init back in after reverting for debug
Diffstat (limited to 'system/db/init.go')
-rw-r--r--system/db/init.go6
1 files changed, 2 insertions, 4 deletions
diff --git a/system/db/init.go b/system/db/init.go
index 0c3c887..92fa908 100644
--- a/system/db/init.go
+++ b/system/db/init.go
@@ -2,7 +2,6 @@ package db
import (
"encoding/json"
- "fmt"
"log"
"github.com/bosssauce/ponzu/content"
@@ -25,13 +24,12 @@ func Close() {
// Init creates a db connection, initializes db with required info, sets secrets
func Init() {
- store, err := bolt.Open("system.db", 0666, nil)
+ var err error
+ store, err = bolt.Open("system.db", 0666, nil)
if err != nil {
log.Fatalln(err)
}
- fmt.Println("system", store)
-
err = store.Update(func(tx *bolt.Tx) error {
// initialize db with all content type buckets & sorted bucket for type
for t := range content.Types {