From 987c07dd189b16604326a9336754621738dc094c Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Thu, 27 Apr 2017 06:26:58 +0200 Subject: minor refactoring --- src/hub/src/spreadspace.org/sfive/s5store.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/hub') 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 } -- cgit v1.2.3