diff options
author | Christian Pointner <equinox@spreadspace.org> | 2017-04-27 06:26:58 +0200 |
---|---|---|
committer | Christian Pointner <equinox@spreadspace.org> | 2017-04-27 06:26:58 +0200 |
commit | 987c07dd189b16604326a9336754621738dc094c (patch) | |
tree | 5fb703162f2741423b46e2e39cb4a5c8ba42687b | |
parent | added copyright header (diff) |
minor refactoring
-rw-r--r-- | src/hub/src/spreadspace.org/sfive/s5store.go | 6 |
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 } |