multi: remove DefaultQueryConfig
And always make use of either the new DefaultSQLiteConfig or DefaultPostgresConfig.
This commit is contained in:
10 files changed
+95
-92
No files matched your search
@@ -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,
|
||||
)
|
||||
|
||||
Reference in new issue
Block a user