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

[refactor]tools-v2: optimize duplicate code #2534

Merged
merged 1 commit into from
Jun 19, 2023

Conversation

baytan0720
Copy link
Member

What problem does this PR solve?

Issue Number: #xxx

Problem Summary:
I deleted some duplicate code and related code, now use ListOfflineChunkServer.

What is changed and how it works?

What's Changed:
modify: tools-v2/internal/error/error.go
delete: tools-v2/pkg/cli/command/curvebs/list/chunkserver/copyset_by_host.go
modify: tools-v2/pkg/cli/command/curvebs/update/copyset/availflag/availflag.go

How it Works:

Side effects(Breaking backward compatibility? Performance regression?):

Check List

  • Relevant documentation/comments is changed or added
  • I acknowledge that all my contributions will be made under the project's license

@baytan0720
Copy link
Member Author

I haven't test, please wait for ready.

Signed-off-by: baytan0720 <baytan2@hotmail.com>
@baytan0720
Copy link
Member Author

cicheck

@baytan0720
Copy link
Member Author

cicheck

@Cyber-SiKu Cyber-SiKu merged commit 771f8c1 into opencurve:master Jun 19, 2023
3 checks passed
@baytan0720 baytan0720 deleted the optimize branch November 3, 2023 03:16
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

3 participants