Skip to content

Commit 6217b70

Browse files
committed
SE: change naming from "host" to "target"
Some time ago LoadBalancingPolicy started to operate on "targets", where a "target" is a pair of host and optional shard. Previously it operated on hosts. Some doc comments in speculative execution were not updated and still mentioned hosts.
1 parent 98ea6bd commit 6217b70

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scylla/src/policies/speculative_execution.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ pub struct Context {
1515
}
1616

1717
/// The policy that decides if the driver will send speculative queries to the
18-
/// next hosts when the current host takes too long to respond.
18+
/// next targets when the current target takes too long to respond.
1919
pub trait SpeculativeExecutionPolicy: std::fmt::Debug + Send + Sync {
2020
/// The maximum number of speculative executions that will be triggered
2121
/// for a given request (does not include the initial request)
@@ -38,7 +38,7 @@ pub struct SimpleSpeculativeExecutionPolicy {
3838
}
3939

4040
/// A policy that triggers speculative executions when the request to the current
41-
/// host is above a given percentile.
41+
/// target is above a given percentile.
4242
#[derive(Debug, Clone)]
4343
pub struct PercentileSpeculativeExecutionPolicy {
4444
/// The maximum number of speculative executions that will be triggered

0 commit comments

Comments
 (0)