Skip to content

Commit e9f0b15

Browse files
muzarskiLorak-mmk
authored andcommitted
spec_exec: Adjust comments in can_be_ignored
Fixed a typo, and added a note that timeout error should not appear here.
1 parent af8adba commit e9f0b15

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

scylla/src/policies/speculative_execution.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,11 +108,13 @@ fn can_be_ignored<ResT>(result: &Result<ResT, RequestError>) -> bool {
108108
// automatically fall under `_` pattern when they are introduced.
109109
#[deny(clippy::wildcard_enum_match_arm)]
110110
Err(e) => match e {
111-
// This error should not appear it. Anyway, if it possibly could
111+
// This error should not appear here. Anyway, if it possibly could
112112
// in the future, it should not be ignored.
113113
RequestError::EmptyPlan => false,
114114

115115
// Request execution timed out.
116+
// This error should not appear here. Anyway, if it possibly could
117+
// in the future, it should not be ignored.
116118
RequestError::RequestTimeout(_) => false,
117119

118120
// Can try on another node.

0 commit comments

Comments
 (0)