Skip to content

Commit

Permalink
Clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
Jake-Shadle committed Aug 5, 2024
1 parent 83d3067 commit e56209c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/config/providers/k8s.rs
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ pub fn update_endpoints_from_gameservers(
"Restarting with endpoints"
);

config.clusters.write().insert(locality.clone(), std::mem::replace(&mut servers, BTreeSet::new()));
config.clusters.write().insert(locality.clone(), std::mem::take(&mut servers));
}
Event::Delete(server) => {
tracing::debug!("received delete event from k8s");
Expand Down

0 comments on commit e56209c

Please sign in to comment.