Skip to content

Commit

Permalink
Merge pull request #840 from cvybhu/consistent-example
Browse files Browse the repository at this point in the history
examples/execution_profile: fix usage of illegal consistency
  • Loading branch information
Lorak-mmk authored Oct 17, 2023
2 parents 3a26efc + cbbab90 commit d931716
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/execution_profile.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ async fn main() -> Result<()> {
println!("Connecting to {} ...", uri);

let profile1 = ExecutionProfile::builder()
.consistency(Consistency::EachQuorum)
.consistency(Consistency::LocalQuorum)
.serial_consistency(Some(SerialConsistency::Serial))
.request_timeout(Some(Duration::from_secs(42)))
.load_balancing_policy(Arc::new(load_balancing::DefaultPolicy::default()))
Expand Down

0 comments on commit d931716

Please sign in to comment.