Skip to content

refactor: using slices.Contains to simplify the code #346

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

Merged
merged 3 commits into from
Apr 16, 2025

Conversation

zhoufanjin
Copy link
Contributor

What

using slices.Contains to simplify the code

Why

This is a new function added in the go1.21 standard library, which can make the code more concise and easy to read.

Known limitations

N

@zhoufanjin
Copy link
Contributor Author

@Shaptic Hello, I have rebased the latest code and resolved the conflicts. Please review it again.

refactor: using slices.Contains to simplify the code

Signed-off-by: zhoufanjin <[email protected]>
@zhoufanjin
Copy link
Contributor Author

image

Except for the test case related to the database connection timeout, all others have passed.

Please review again.

Copy link
Contributor

@Shaptic Shaptic left a comment

Choose a reason for hiding this comment

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

Thank you for your contribution!

@Shaptic Shaptic enabled auto-merge (squash) April 16, 2025 19:58
@Shaptic Shaptic merged commit aca5542 into stellar:main Apr 16, 2025
16 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.

2 participants