diff options
author | Steve <nilslice@gmail.com> | 2016-12-12 00:34:46 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-12-12 00:34:46 -0800 |
commit | e7c23d71d5179744c230ab4e25f405a5607ba905 (patch) | |
tree | 758eba1275e1436220281fd45e3ad642fcda4598 /system/api/analytics/batch.go | |
parent | f39c1519ab382a343c05163f00f38c83bff3583d (diff) | |
parent | 3b10b345045428b9011eecd0ded9c04db42bf28f (diff) |
Merge pull request #20 from bosssauce/ponzu-dev
[core] cache-control & db specifier namespace clean-up
Diffstat (limited to 'system/api/analytics/batch.go')
-rw-r--r-- | system/api/analytics/batch.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/system/api/analytics/batch.go b/system/api/analytics/batch.go index c4a60db..68ffd65 100644 --- a/system/api/analytics/batch.go +++ b/system/api/analytics/batch.go @@ -19,7 +19,7 @@ func batchInsert(requests chan apiRequest) error { } err := store.Update(func(tx *bolt.Tx) error { - b, err := tx.CreateBucketIfNotExists([]byte("requests")) + b, err := tx.CreateBucketIfNotExists([]byte("__requests")) if err != nil { return err } @@ -64,7 +64,7 @@ func batchPrune(threshold time.Duration) error { // iterate through all request data err := store.Update(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 |