refactor: allow unused variable warning for db_pool in build_provider_registry
This commit is contained in:
@@ -21,6 +21,7 @@ pub struct ProviderBundle {
|
|||||||
|
|
||||||
pub async fn build_provider_registry(
|
pub async fn build_provider_registry(
|
||||||
config: &Config,
|
config: &Config,
|
||||||
|
#[cfg_attr(not(feature = "local-files"), allow(unused_variables))]
|
||||||
db_pool: &Arc<DatabasePool>,
|
db_pool: &Arc<DatabasePool>,
|
||||||
provider_config_repo: &Arc<dyn ProviderConfigRepository>,
|
provider_config_repo: &Arc<dyn ProviderConfigRepository>,
|
||||||
) -> anyhow::Result<ProviderBundle> {
|
) -> anyhow::Result<ProviderBundle> {
|
||||||
|
|||||||
Reference in New Issue
Block a user