Skip to content

Commit 95fc0c2

Browse files
committed
firewalldb: db logic for the privacy mapper
1 parent 0a9f545 commit 95fc0c2

File tree

3 files changed

+570
-0
lines changed

3 files changed

+570
-0
lines changed

firewalldb/db.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,11 @@ func initDB(filepath string, firstInit bool) (*bbolt.DB, error) {
132132
}
133133

134134
_, err = actionsBucket.CreateBucketIfNotExists(actionsIndex)
135+
if err != nil {
136+
return err
137+
}
138+
139+
_, err = tx.CreateBucketIfNotExists(privacyBucketKey)
135140
return err
136141
})
137142
if err != nil {

0 commit comments

Comments
 (0)