diff options
author | Steven Normore <snormore@gmail.com> | 2014-04-13 19:57:47 +0000 |
---|---|---|
committer | Ben Johnson <benbjohnson@yahoo.com> | 2014-04-18 21:44:36 -0500 |
commit | 97bd718b0231814f119299a460d2b7d2b15590ce (patch) | |
tree | 9a08be31ff934367bfe0d9a33e98fe0bd2f48db9 /cmd/bolt/set.go | |
parent | fix basic parallel benchmark (diff) | |
download | dedo-97bd718b0231814f119299a460d2b7d2b15590ce.tar.gz dedo-97bd718b0231814f119299a460d2b7d2b15590ce.tar.xz |
add benchmarks using Benchmark framework
Diffstat (limited to 'cmd/bolt/set.go')
-rw-r--r-- | cmd/bolt/set.go | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/cmd/bolt/set.go b/cmd/bolt/set.go index c757d27..f4a4696 100644 --- a/cmd/bolt/set.go +++ b/cmd/bolt/set.go @@ -21,11 +21,6 @@ func Set(path, name, key, value string) { defer db.Close() err = db.Update(func(tx *bolt.Tx) error { - // Create the bucket if it doesn't exist. - if err := tx.CreateBucketIfNotExists([]byte(name)); err != nil { - fatalf("create bucket: %s", err) - return nil - } // Find bucket. b := tx.Bucket([]byte(name)) |