Skip to content

Commit

Permalink
fix: clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
nikolay-komarevskiy committed Jul 16, 2024
1 parent ea4c8e5 commit 55656b4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ impl<S> Drop for DynamicRouteProvider<S> {
let tracker = self.tracker.clone();
// If no runtime is available do nothing.
if let Ok(handle) = Handle::try_current() {
let _ = handle.spawn(async move {
handle.spawn(async move {
tracker.wait().await;
warn!("{DYNAMIC_ROUTE_PROVIDER}: stopped gracefully");
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ impl RoutingSnapshot for LatencyRoutingSnapshot {
.cloned()
.collect();
let has_added_nodes = !nodes_added.is_empty();
self.existing_nodes.extend(nodes_added.into_iter());
self.existing_nodes.extend(nodes_added);
// NOTE: newly added nodes will appear in the weighted_nodes later.
// This happens after the first node health check round and a consequent update_node() invocation.
for node in nodes_removed.into_iter() {
Expand Down

0 comments on commit 55656b4

Please sign in to comment.