Skip to content

Commit

Permalink
windsock: fix cdrs connection count (#1456)
Browse files Browse the repository at this point in the history
  • Loading branch information
rukai authored Feb 7, 2024
1 parent 15e030c commit 05fd8bc
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions shotover-proxy/benches/windsock/cassandra/bench.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ use async_trait::async_trait;
use aws_throwaway::Ec2Instance;
use cdrs_tokio::{
cluster::{
connection_pool::ConnectionPoolConfigBuilder,
session::{
Session as CdrsTokioSession, SessionBuilder as CdrsTokioSessionBuilder,
TcpSessionBuilder,
Expand Down Expand Up @@ -742,6 +743,12 @@ impl Bench for CassandraBench {
Compression::None => CdrsCompression::None,
Compression::Lz4 => CdrsCompression::Lz4,
})
.with_connection_pool_config(
ConnectionPoolConfigBuilder::new()
.with_local_size(self.connection_count)
.with_remote_size(self.connection_count)
.build(),
)
.build()
.await
.unwrap(),
Expand Down

0 comments on commit 05fd8bc

Please sign in to comment.