From 650b67e118c6672c65f1b0fab684695284127e9b Mon Sep 17 00:00:00 2001 From: Steve Manuel Date: Tue, 6 Dec 2016 15:08:22 -0800 Subject: substituting "_{specifier}" => "__{specifier}" so users can add their own types with "_" as a separator and not face conflicts --- system/api/analytics/init.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'system/api/analytics') diff --git a/system/api/analytics/init.go b/system/api/analytics/init.go index 41c24c7..7cb35af 100644 --- a/system/api/analytics/init.go +++ b/system/api/analytics/init.go @@ -66,7 +66,7 @@ func Init() { } err = store.Update(func(tx *bolt.Tx) error { - _, err := tx.CreateBucketIfNotExists([]byte("requests")) + _, err := tx.CreateBucketIfNotExists([]byte("__requests")) if err != nil { return err } -- cgit v1.2.3 From 64050ef8065bccdef0aab1748040995c637fe9ed Mon Sep 17 00:00:00 2001 From: Steve Manuel Date: Tue, 6 Dec 2016 15:11:11 -0800 Subject: missed a rename --- system/api/analytics/init.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'system/api/analytics') diff --git a/system/api/analytics/init.go b/system/api/analytics/init.go index 7cb35af..6558adf 100644 --- a/system/api/analytics/init.go +++ b/system/api/analytics/init.go @@ -138,7 +138,7 @@ func ChartData() (map[string]interface{}, error) { // get api request analytics from db var requests = []apiRequest{} err := store.View(func(tx *bolt.Tx) error { - b := tx.Bucket([]byte("requests")) + b := tx.Bucket([]byte("__requests")) err := b.ForEach(func(k, v []byte) error { var r apiRequest -- cgit v1.2.3