Skip to content

Commit

Permalink
Move sqlx importing under feature directive (#903)
Browse files Browse the repository at this point in the history
  • Loading branch information
kurotych authored Dec 2, 2024
1 parent 833b350 commit 7cb6add
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion file_store/src/file_info_poller.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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};
Expand Down Expand Up @@ -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> {
Expand Down

0 comments on commit 7cb6add

Please sign in to comment.