mirror of
https://github.com/lightninglabs/lightning-terminal.git
synced 2026-08-13 12:33:36 +02:00
lit: plug into dev build
Plug the new SQL version of the RulesDB into LiT for `dev` flag builds.
This commit is contained in:
parent
ec78618c52
commit
34620f84a1
1 changed files with 8 additions and 1 deletions
|
|
@ -108,9 +108,11 @@ func NewStores(cfg *Config, clock clock.Clock) (*stores, error) {
|
|||
|
||||
acctStore := accounts.NewSQLStore(sqlStore.BaseDB, clock)
|
||||
sessStore := session.NewSQLStore(sqlStore.BaseDB, clock)
|
||||
firewallStore := firewalldb.NewSQLDB(sqlStore.BaseDB)
|
||||
|
||||
stores.accounts = acctStore
|
||||
stores.sessions = sessStore
|
||||
stores.firewall = firewalldb.NewDB(firewallStore)
|
||||
stores.closeFns["sqlite"] = sqlStore.BaseDB.Close
|
||||
|
||||
case DatabaseBackendPostgres:
|
||||
|
|
@ -121,9 +123,11 @@ func NewStores(cfg *Config, clock clock.Clock) (*stores, error) {
|
|||
|
||||
acctStore := accounts.NewSQLStore(sqlStore.BaseDB, clock)
|
||||
sessStore := session.NewSQLStore(sqlStore.BaseDB, clock)
|
||||
firewallStore := firewalldb.NewSQLDB(sqlStore.BaseDB)
|
||||
|
||||
stores.accounts = acctStore
|
||||
stores.sessions = sessStore
|
||||
stores.firewall = firewalldb.NewDB(firewallStore)
|
||||
stores.closeFns["postgres"] = sqlStore.BaseDB.Close
|
||||
|
||||
default:
|
||||
|
|
@ -157,7 +161,10 @@ func NewStores(cfg *Config, clock clock.Clock) (*stores, error) {
|
|||
err)
|
||||
}
|
||||
|
||||
stores.firewall = firewalldb.NewDB(firewallBoltDB)
|
||||
if stores.firewall == nil {
|
||||
stores.firewall = firewalldb.NewDB(firewallBoltDB)
|
||||
}
|
||||
|
||||
stores.firewallBolt = firewallBoltDB
|
||||
stores.closeFns["bbolt-firewalldb"] = firewallBoltDB.Close
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue