Skip to content

Commit

Permalink
fix doc being missing for ExecutionProfileHandle::load_balancing_policy
Browse files Browse the repository at this point in the history
  • Loading branch information
Ten0 committed Jul 3, 2023
1 parent 84ee6aa commit a484a4c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions scylla/src/transport/execution_profile.rs
Original file line number Diff line number Diff line change
Expand Up @@ -486,6 +486,10 @@ impl ExecutionProfileHandle {
self.0 .0.store(profile.0)
}

/// Get the load balancing policy associated with this execution profile.
///
/// This may be useful if one wants to construct a new load balancing policy that is based on the one associated
/// with this execution profile.
pub fn load_balancing_policy(&self) -> Arc<dyn LoadBalancingPolicy> {
self.0 .0.load().load_balancing_policy.clone()
}
Expand Down

0 comments on commit a484a4c

Please sign in to comment.