-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
In this commit, we make `load_balancing_kind` optional in `LoadBalancingConfig`. Now, there are two cases: - for cluster's LBP, there is a default value (round-robin) which driver's going to use if user did not provide LBP. Thus, the `unwrap_or` call in `LoadBalancingConfig::build` - for exec profile's LBP, if user did not provide an LBP kind (load_balancing_kind is None), then, according to cpp-driver, cluster's LBP should be used (instead of some predefined default). After this commit, we are finally consistent with cpp-driver. Now, if user did not specify an LBP for given execution profile, the cluster's default LBP (session-wide LBP) will be assigned to the profile.
- Loading branch information
Showing
3 changed files
with
33 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters