diff --git a/postgres/src/config.rs b/postgres/src/config.rs index 9c44c4cb..4a2d4509 100644 --- a/postgres/src/config.rs +++ b/postgres/src/config.rs @@ -95,7 +95,7 @@ use crate::{Client, RUNTIME}; pub struct Config { config: tokio_postgres::Config, // 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>>, + executor: Option>>, } impl fmt::Debug for Config { @@ -239,7 +239,7 @@ impl Config { /// Defaults to a postgres-specific tokio `Runtime`. pub fn executor(&mut self, executor: E) -> &mut Config where - E: Executor + 'static + Sync + Send, + E: Executor + 'static + Send, { self.executor = Some(Arc::new(Mutex::new(executor))); self