diff --git a/postgres/src/config.rs b/postgres/src/config.rs index ccfb5f4c..e142b9d2 100644 --- a/postgres/src/config.rs +++ b/postgres/src/config.rs @@ -13,11 +13,13 @@ use tokio_postgres::{Error, Socket}; use crate::{Client, RUNTIME}; +type DynExecutor = dyn Executor + Send>> + Sync + Send; + #[derive(Clone)] pub struct Config { config: tokio_postgres::Config, - #[allow(clippy::type_complexity)] - executor: Option + Send>>>>, + // this is an option since we don't want to boot up our default runtime unless we're actually going to use it. + executor: Option>, } impl fmt::Debug for Config {