summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/hub/src/spreadspace.org/sfive/s5store.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/hub/src/spreadspace.org/sfive/s5store.go b/src/hub/src/spreadspace.org/sfive/s5store.go
index 1b93d6f..275a488 100644
--- a/src/hub/src/spreadspace.org/sfive/s5store.go
+++ b/src/hub/src/spreadspace.org/sfive/s5store.go
@@ -49,13 +49,13 @@ type Store struct {
db *bolt.DB
}
-func initDb(boltPath string) (boltDb *bolt.DB, hubId string, err error) {
- boltDb, err = bolt.Open(boltPath, 0600, &bolt.Options{Timeout: 1 * time.Second})
+func initDb(dbPath string) (db *bolt.DB, hubId string, err error) {
+ db, err = bolt.Open(dbPath, 0600, &bolt.Options{Timeout: 1 * time.Second})
if err != nil {
return
}
- err = boltDb.Update(func(tx *bolt.Tx) error {
+ err = db.Update(func(tx *bolt.Tx) error {
if _, err := tx.CreateBucketIfNotExists([]byte(dataUpdatesBn)); err != nil {
return err
}