diff --git a/file_store/src/file_info_poller.rs b/file_store/src/file_info_poller.rs index ecaa9bfdb..615ff05cd 100644 --- a/file_store/src/file_info_poller.rs +++ b/file_store/src/file_info_poller.rs @@ -5,7 +5,6 @@ use derive_builder::Builder; use futures::{future::LocalBoxFuture, stream::BoxStream, StreamExt}; use futures_util::TryFutureExt; use retainer::Cache; -use sqlx::postgres::PgQueryResult; use std::{collections::VecDeque, marker::PhantomData, sync::Arc, time::Duration}; use task_manager::ManagedTask; use tokio::sync::mpsc::{Receiver, Sender}; @@ -414,6 +413,9 @@ impl FileInfoPollerStore for FileStore { } } +#[cfg(feature = "sqlx-postgres")] +use sqlx::postgres::PgQueryResult; + #[cfg(feature = "sqlx-postgres")] #[async_trait::async_trait] impl FileInfoPollerStateRecorder for &mut sqlx::Transaction<'_, sqlx::Postgres> {