multi: remove DefaultQueryConfig

And always make use of either the new DefaultSQLiteConfig or
DefaultPostgresConfig.
This commit is contained in:
Elle Mouton committed 2025-08-13 14:43:31 +02:00
1 parent 1082eaaeb3
commit b1deddec44
10 files changed
+95 -92

No files matched your search

+6 -1
View File
@@ -142,10 +142,15 @@ func openNativeSQLGraphDB(ht *lntest.HarnessTest,
},
)
queryCfg := sqldb.DefaultSQLiteConfig()
if hn.Cfg.DBBackend != node.BackendSqlite {
queryCfg = sqldb.DefaultPostgresConfig()
}
store, err := graphdb.NewSQLStore(
&graphdb.SQLStoreConfig{
ChainHash: *ht.Miner().ActiveNet.GenesisHash,
QueryCfg: sqldb.DefaultQueryConfig(),
QueryCfg: queryCfg,
},
executor,
)