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

[Agent] optimize match expression #4339

Merged
merged 4 commits into from Sep 21, 2023
Merged

Conversation

xiaoziv
Copy link
Contributor

@xiaoziv xiaoziv commented Sep 20, 2023

This PR is for:

Agent

optimize match expression

match components.as_mut() {
  None => {},
  Some(components) => {
    match components {
      Components::Agent(components) => {},
      _ => {},
    }
  }
}

refactor to

match components.as_mut() {
  None => {},
  Some(Components::Agent(components)) => {},
  _ => {},
}

@CLAassistant
Copy link

CLAassistant commented Sep 20, 2023

CLA assistant check
All committers have signed the CLA.

agent/src/trident.rs Outdated Show resolved Hide resolved
@sharang sharang enabled auto-merge (rebase) September 21, 2023 06:08
@sharang sharang merged commit cb8da48 into deepflowio:main Sep 21, 2023
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants