Fix port; add user pool mode (#395)

* Fix port; add user pool mode

* will probably break our session/transaction mode tests
This commit is contained in:
Lev Kokotov
2023-04-05 15:06:19 -07:00
committed by GitHub
parent 89e15f09b5
commit a62f6b0eea
4 changed files with 24 additions and 6 deletions

View File

@@ -382,7 +382,10 @@ impl ConnectionPool {
server_info: Arc::new(RwLock::new(BytesMut::new())),
auth_hash: pool_auth_hash,
settings: PoolSettings {
pool_mode: pool_config.pool_mode,
pool_mode: match user.pool_mode {
Some(pool_mode) => pool_mode,
None => pool_config.pool_mode,
},
load_balancing_mode: pool_config.load_balancing_mode,
// shards: pool_config.shards.clone(),
shards: shard_ids.len(),