Skip to content

fix: fix slice init length - #4335

Merged
fluid-e2e-bot[bot] merged 1 commit into
fluid-cloudnative:masterfrom
cuishuang:master
Oct 5, 2024
Merged

fix: fix slice init length#4335
fluid-e2e-bot[bot] merged 1 commit into
fluid-cloudnative:masterfrom
cuishuang:master

Conversation

@cuishuang

Copy link
Copy Markdown
Contributor

Ⅰ. Describe what this PR does

The intention here should be to initialize a slice with a capacity of len(runtimeInfos) rather than initializing the length of this slice.

The online demo: https://go.dev/play/p/q1BcVCmvidW

Ⅱ. Does this pull request fix one issue?

fixes #XXXX

Ⅲ. List the added test cases (unit test/integration test) if any, please explain if no tests are needed.

Ⅳ. Describe how to verify it

Ⅴ. Special notes for reviews

@fluid-e2e-bot

fluid-e2e-bot Bot commented Oct 4, 2024

Copy link
Copy Markdown

Hi @cuishuang. Thanks for your PR.

I'm waiting for a fluid-cloudnative member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

Details

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@cheyang
cheyang requested a review from xliuqq October 5, 2024 07:15
@cheyang

cheyang commented Oct 5, 2024

Copy link
Copy Markdown
Collaborator

@cuishuang Please fix DCO issue by following the guide in https://github.com/fluid-cloudnative/fluid/pull/4335/checks?check_run_id=31076714246

Signed-off-by: cuishuang <imcusg@gmail.com>
@cuishuang

Copy link
Copy Markdown
Contributor Author

@cuishuang Please fix DCO issue by following the guide in https://github.com/fluid-cloudnative/fluid/pull/4335/checks?check_run_id=31076714246

Thanks. Signed

@sonarqubecloud

sonarqubecloud Bot commented Oct 5, 2024

Copy link
Copy Markdown

@cheyang cheyang left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

/lgtm
/approve

@cheyang cheyang left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

/lgtm
/approve

@fluid-e2e-bot

fluid-e2e-bot Bot commented Oct 5, 2024

Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: cheyang

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@cheyang

cheyang commented Oct 5, 2024

Copy link
Copy Markdown
Collaborator

@cuishuang Good catch! Thanks for helping optimizing the code's performance!Look forward to your next contribution!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants