We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d52650a commit 9482745Copy full SHA for 9482745
postgres/src/config.rs
@@ -13,11 +13,13 @@ use tokio_postgres::{Error, Socket};
13
14
use crate::{Client, RUNTIME};
15
16
+type DynExecutor = dyn Executor<Box<dyn Future<Item = (), Error = ()> + Send>> + Sync + Send;
17
+
18
#[derive(Clone)]
19
pub struct Config {
20
config: tokio_postgres::Config,
- #[allow(clippy::type_complexity)]
- executor: Option<Arc<dyn Executor<Box<dyn Future<Item = (), Error = ()> + Send>>>>,
21
+ // this is an option since we don't want to boot up our default runtime unless we're actually going to use it.
22
+ executor: Option<Arc<DynExecutor>>,
23
}
24
25
impl fmt::Debug for Config {
0 commit comments