Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

auditing clone usage #418

Merged
merged 3 commits into from
Feb 24, 2023
Merged

auditing clone usage #418

merged 3 commits into from
Feb 24, 2023

Conversation

ilrudie
Copy link
Contributor

@ilrudie ilrudie commented Feb 24, 2023

  • some clones removed
  • some clones were changing borrowed to owned, replaced with .to_owned() to make this clear

I have some comments that may be more relevant to the reviewer than they are to future developers. If reviewer feels they've served their purpose after they read through I am happy to remove.

working on: #10

- some clones removed
- some clones were changing borrowed to owned, replaced with .to_owned() to make this clear
@istio-testing istio-testing added the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label Feb 24, 2023
@@ -372,7 +372,8 @@ impl OutboundConnection {
}
// For case source client and upstream server are on the same node
if !us.workload.node.is_empty()
&& self.pi.cfg.local_node == Some(us.workload.node.clone())
&& !self.pi.cfg.local_node.is_none()
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do we need this?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No. Good catch. I was planning to unwrap local_node and wanted to ensure we didn't panic but it turns out that isn't necessary. Fix coming soon.

@istio-testing istio-testing merged commit d3c83e2 into istio:master Feb 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants