Skip to content

Commit 587012e

Browse files
committed
codewide: fix typo overriden -> overridden
1 parent 5705a1f commit 587012e

File tree

4 files changed

+11
-11
lines changed

4 files changed

+11
-11
lines changed

scylla/src/cluster/control_connection.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,21 +18,21 @@ use crate::statement::Statement;
1818
pub(super) struct ControlConnection {
1919
conn: Arc<Connection>,
2020
/// The custom server-side timeout set for requests executed on the control connection.
21-
overriden_serverside_timeout: Option<Duration>,
21+
overridden_serverside_timeout: Option<Duration>,
2222
}
2323

2424
impl ControlConnection {
2525
pub(super) fn new(conn: Arc<Connection>) -> Self {
2626
Self {
2727
conn,
28-
overriden_serverside_timeout: None,
28+
overridden_serverside_timeout: None,
2929
}
3030
}
3131

3232
/// Sets the custom server-side timeout set for requests executed on the control connection.
33-
pub(super) fn override_serverside_timeout(self, overriden_timeout: Option<Duration>) -> Self {
33+
pub(super) fn override_serverside_timeout(self, overridden_timeout: Option<Duration>) -> Self {
3434
Self {
35-
overriden_serverside_timeout: overriden_timeout,
35+
overridden_serverside_timeout: overridden_timeout,
3636
..self
3737
}
3838
}
@@ -49,7 +49,7 @@ impl ControlConnection {
4949
/// Appends the custom server-side timeout to the statement string, if such custom timeout
5050
/// is provided and we are connected to ScyllaDB (since custom timeouts is ScyllaDB-only feature).
5151
fn maybe_append_timeout_override(&self, statement: &mut Statement) {
52-
if let Some(timeout) = self.overriden_serverside_timeout {
52+
if let Some(timeout) = self.overridden_serverside_timeout {
5353
if self.is_to_scylladb() {
5454
// SAFETY: io::fmt::Write impl for String is infallible.
5555
write!(

scylla/src/statement/batch.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ impl Batch {
145145

146146
/// Get the retry policy set for the batch.
147147
///
148-
/// This method returns the retry policy that is **overriden** on this statement.
148+
/// This method returns the retry policy that is **overridden** on this statement.
149149
/// In other words, it returns the retry policy set using [`Batch::set_retry_policy`].
150150
/// This does not take the retry policy from the set execution profile into account.
151151
#[inline]
@@ -164,7 +164,7 @@ impl Batch {
164164

165165
/// Get the load balancing policy set for the batch.
166166
///
167-
/// This method returns the load balancing policy that is **overriden** on this statement.
167+
/// This method returns the load balancing policy that is **overridden** on this statement.
168168
/// In other words, it returns the load balancing policy set using [`Batch::set_load_balancing_policy`].
169169
/// This does not take the load balancing policy from the set execution profile into account.
170170
#[inline]

scylla/src/statement/prepared.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -446,7 +446,7 @@ impl PreparedStatement {
446446

447447
/// Get the retry policy set for the statement.
448448
///
449-
/// This method returns the retry policy that is **overriden** on this statement.
449+
/// This method returns the retry policy that is **overridden** on this statement.
450450
/// In other words, it returns the retry policy set using [`PreparedStatement::set_retry_policy`].
451451
/// This does not take the retry policy from the set execution profile into account.
452452
#[inline]
@@ -465,7 +465,7 @@ impl PreparedStatement {
465465

466466
/// Get the load balancing policy set for the statement.
467467
///
468-
/// This method returns the load balancing policy that is **overriden** on this statement.
468+
/// This method returns the load balancing policy that is **overridden** on this statement.
469469
/// In other words, it returns the load balancing policy set using [`PreparedStatement::set_load_balancing_policy`].
470470
/// This does not take the load balancing policy from the set execution profile into account.
471471
#[inline]

scylla/src/statement/unprepared.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ impl Statement {
152152

153153
/// Get the retry policy set for the statement.
154154
///
155-
/// This method returns the retry policy that is **overriden** on this statement.
155+
/// This method returns the retry policy that is **overridden** on this statement.
156156
/// In other words, it returns the retry policy set using [`Statement::set_retry_policy`].
157157
/// This does not take the retry policy from the set execution profile into account.
158158
#[inline]
@@ -171,7 +171,7 @@ impl Statement {
171171

172172
/// Get the load balancing policy set for the statement.
173173
///
174-
/// This method returns the load balancing policy that is **overriden** on this statement.
174+
/// This method returns the load balancing policy that is **overridden** on this statement.
175175
/// In other words, it returns the load balancing policy set using [`Statement::set_load_balancing_policy`].
176176
/// This does not take the load balancing policy from the set execution profile into account.
177177
#[inline]

0 commit comments

Comments
 (0)