summaryrefslogtreecommitdiff
path: root/system/api/analytics/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/api/analytics/init.go
parent30ea59f0d1cae4229490596efba22f9d9b298f4c (diff)
adding db/analytics init back in after reverting for debug
Diffstat (limited to 'system/api/analytics/init.go')
-rw-r--r--system/api/analytics/init.go6
1 files changed, 2 insertions, 4 deletions
diff --git a/system/api/analytics/init.go b/system/api/analytics/init.go
index c04a7f2..c351bed 100644
--- a/system/api/analytics/init.go
+++ b/system/api/analytics/init.go
@@ -4,7 +4,6 @@
package analytics
import (
- "fmt"
"log"
"net/http"
"strings"
@@ -55,13 +54,12 @@ func Close() {
// Init creates a db connection, should run an initial prune of old data, and
// sets up the queue/batching channel
func Init() {
- store, err := bolt.Open("analytics.db", 0666, nil)
+ var err error
+ store, err = bolt.Open("analytics.db", 0666, nil)
if err != nil {
log.Fatalln(err)
}
- fmt.Println("analytics", store)
-
recordChan = make(chan apiRequest, 1024*128)
go serve()