Skip to content

Commit ad02aa6

Browse files
committed
firewalldb: remove unnecessary struct
1 parent 4e7ec31 commit ad02aa6

File tree

1 file changed

+4
-11
lines changed

1 file changed

+4
-11
lines changed

firewalldb/privacy_mapper_kvdb.go

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -35,24 +35,17 @@ func (db *BoltDB) PrivacyDB(groupID session.ID) PrivacyMapDB {
3535
db: db.DB,
3636
wrapTx: func(tx *bbolt.Tx) PrivacyMapTx {
3737
return &privacyMapTx{
38-
boltTx: tx,
39-
privacyMapDB: &privacyMapDB{
40-
groupID: groupID,
41-
},
38+
boltTx: tx,
39+
groupID: groupID,
4240
}
4341
},
4442
}
4543
}
4644

47-
// privacyMapDB is an implementation of PrivacyMapDB.
48-
type privacyMapDB struct {
49-
groupID session.ID
50-
}
51-
5245
// privacyMapTx is an implementation of PrivacyMapTx.
5346
type privacyMapTx struct {
54-
*privacyMapDB
55-
boltTx *bbolt.Tx
47+
groupID session.ID
48+
boltTx *bbolt.Tx
5649
}
5750

5851
// NewPair inserts a new real-pseudo pair into the db.

0 commit comments

Comments
 (0)