aboutsummaryrefslogtreecommitdiff
path: root/cmd/bolt/set.go
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/bolt/set.go')
-rw-r--r--cmd/bolt/set.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/bolt/set.go b/cmd/bolt/set.go
index ff12024..9761f44 100644
--- a/cmd/bolt/set.go
+++ b/cmd/bolt/set.go
@@ -22,7 +22,7 @@ func Set(path, name, key, value string) {
err = db.Update(func(tx *bolt.Tx) error {
// Find bucket.
- b := tx.Bucket(name)
+ b := tx.Bucket([]byte(name))
if b == nil {
fatalf("bucket not found: %s", name)
return nil