Skip to content

Commit

Permalink
rename enum
Browse files Browse the repository at this point in the history
  • Loading branch information
levkk committed Jan 10, 2025
1 parent 9a01ced commit 71f425d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pgdog/src/backend/pool/replicas.rs
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ impl Replicas {
reshuffled.extend_from_slice(&candidates[..first]);
candidates = reshuffled;
}
LoadBalancingStrategy::LeastConnections => {
LoadBalancingStrategy::LeastActiveConnections => {
candidates.sort_by_cached_key(|(_, pool)| pool.lock().idle());
}
}
Expand Down
2 changes: 1 addition & 1 deletion pgdog/src/config/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ pub enum LoadBalancingStrategy {
#[default]
Random,
RoundRobin,
LeastConnections,
LeastActiveConnections,
}

/// Database server proxied by pgDog.
Expand Down

0 comments on commit 71f425d

Please sign in to comment.