Skip to content

Commit

Permalink
transport: load_balancing: Node::is_alive() made stub - only is_enabl…
Browse files Browse the repository at this point in the history
…ed() taken into account
  • Loading branch information
wprzytula authored and havaker committed Feb 13, 2023
1 parent f477de7 commit e7f3d91
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions scylla/src/transport/load_balancing/default.rs
Original file line number Diff line number Diff line change
Expand Up @@ -310,8 +310,9 @@ impl DefaultPolicy {
vec.into_iter()
}

fn is_alive(node: &NodeRef<'_>) -> bool {
node.is_enabled() && !node.is_down()
fn is_alive(_node: &NodeRef<'_>) -> bool {
_node.is_enabled() // for now, we leave this as stub, until we have time to improve node events.
// node.is_enabled() && !node.is_down()
}

fn is_datacenter_failover_possible(&self, routing_info: &RoutingInfo) -> bool {
Expand Down

0 comments on commit e7f3d91

Please sign in to comment.