aboutsummaryrefslogtreecommitdiff
path: root/src/table/sync.rs
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2023-12-11 15:31:47 +0100
committerAlex Auvolat <alex@adnab.me>2023-12-11 15:31:47 +0100
commit85b5a6bcd11c0a7651e4c589569e1935a3d18e46 (patch)
tree5aabcc8e161dfb304514e23e59f9ccf5a52a6d0a /src/table/sync.rs
parente4f493b48156e6e30f16fba10f300f6cb5fe0b0d (diff)
downloadgarage-85b5a6bcd11c0a7651e4c589569e1935a3d18e46.tar.gz
garage-85b5a6bcd11c0a7651e4c589569e1935a3d18e46.zip
fix some clippy lints
Diffstat (limited to 'src/table/sync.rs')
-rw-r--r--src/table/sync.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/table/sync.rs b/src/table/sync.rs
index cfcbc4b5..1561a2e5 100644
--- a/src/table/sync.rs
+++ b/src/table/sync.rs
@@ -123,15 +123,15 @@ impl<F: TableSchema, R: TableReplication> TableSyncer<F, R> {
let mut sync_futures = result_tracker
.nodes
- .iter()
- .map(|(node, _)| *node)
+ .keys()
+ .copied()
.map(|node| {
let must_exit = must_exit.clone();
async move {
if node == my_id {
(node, Ok(()))
} else {
- (node, self.do_sync_with(&partition, node, must_exit).await)
+ (node, self.do_sync_with(partition, node, must_exit).await)
}
}
})
@@ -145,7 +145,7 @@ impl<F: TableSchema, R: TableReplication> TableSyncer<F, R> {
}
if result_tracker.too_many_failures() {
- return Err(result_tracker.quorum_error());
+ Err(result_tracker.quorum_error())
} else {
Ok(())
}