Skip to content

Commit

Permalink
Fix redis bench
Browse files Browse the repository at this point in the history
  • Loading branch information
ronycsdu committed Nov 19, 2024
1 parent ced3d04 commit 9cbe78c
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 10 deletions.
20 changes: 11 additions & 9 deletions shotover-proxy/benches/windsock/redis/bench.rs
Original file line number Diff line number Diff line change
Expand Up @@ -130,15 +130,17 @@ impl RedisBench {
}
}

common::generate_topology(SourceConfig::Redis(shotover::sources::redis::RedisConfig {
name: "redis".to_owned(),
listen_addr: host_address,
connection_limit: None,
hard_connection_limit: None,
tls: tls_acceptor,
timeout: None,
chain: TransformChainConfig(transforms),
}))
common::generate_topology(SourceConfig::Valkey(
shotover::sources::redis::ValkeyConfig {
name: "redis".to_owned(),
listen_addr: host_address,
connection_limit: None,
hard_connection_limit: None,
tls: tls_acceptor,
timeout: None,
chain: TransformChainConfig(transforms),
},
))
}

async fn run_aws_shotover(
Expand Down
2 changes: 1 addition & 1 deletion shotover/benches/benches/chain.rs
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ fn criterion_benchmark(c: &mut Criterion) {
}
.get_builder(TransformContextConfig {
chain_name: "".into(),
up_chain_protocol: MessageType::Redis,
up_chain_protocol: MessageType::Valkey,
}),
)
.unwrap(),
Expand Down

0 comments on commit 9cbe78c

Please sign in to comment.