diff --git a/gremlin-client/Cargo.toml b/gremlin-client/Cargo.toml index 5a65eaf2..d5e6b063 100644 --- a/gremlin-client/Cargo.toml +++ b/gremlin-client/Cargo.toml @@ -58,7 +58,7 @@ thiserror = "1.0.20" -mobc = {version = "0.7", optional = true, default-features=false, features = ["unstable"] } +mobc = {version = "0.8", optional = true, default-features=false, features = ["unstable"] } url = {version = "2.1.0", optional = true} futures = { version = "0.3.1", optional = true} pin-project-lite = { version = "0.2", optional = true} diff --git a/gremlin-client/src/aio/client.rs b/gremlin-client/src/aio/client.rs index fcaa4c47..ad3c52f2 100644 --- a/gremlin-client/src/aio/client.rs +++ b/gremlin-client/src/aio/client.rs @@ -60,6 +60,8 @@ impl GremlinClient { .get_timeout(opts.pool_get_connection_timeout) .max_open(pool_size as u64) .health_check_interval(opts.pool_healthcheck_interval) + //Makes max idle connections equal to max open, matching the behavior of the sync pool r2d2 + .max_idle(0) .build(manager); Ok(GremlinClient {