We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c456d2c commit ac8d707Copy full SHA for ac8d707
postgres/src/config.rs
@@ -95,7 +95,7 @@ use crate::{Client, RUNTIME};
95
pub struct Config {
96
config: tokio_postgres::Config,
97
// this is an option since we don't want to boot up our default runtime unless we're actually going to use it.
98
- executor: Option<Arc<Mutex<dyn Executor + Sync + Send>>>,
+ executor: Option<Arc<Mutex<dyn Executor + Send>>>,
99
}
100
101
impl fmt::Debug for Config {
@@ -239,7 +239,7 @@ impl Config {
239
/// Defaults to a postgres-specific tokio `Runtime`.
240
pub fn executor<E>(&mut self, executor: E) -> &mut Config
241
where
242
- E: Executor + 'static + Sync + Send,
+ E: Executor + 'static + Send,
243
{
244
self.executor = Some(Arc::new(Mutex::new(executor)));
245
self
0 commit comments