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

fix: fix slice init length #29744

Merged
merged 1 commit into from
Oct 3, 2024
Merged

fix: fix slice init length #29744

merged 1 commit into from
Oct 3, 2024

Conversation

cuishuang
Copy link
Contributor

What does this PR do?

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

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

Motivation

Describe how to test/QA your changes

Possible Drawbacks / Trade-offs

Additional Notes

@cuishuang cuishuang requested a review from a team as a code owner October 3, 2024 07:01
@bits-bot
Copy link
Collaborator

bits-bot commented Oct 3, 2024

CLA assistant check
All committers have signed the CLA.

@GustavoCaso
Copy link
Member

GustavoCaso commented Oct 3, 2024

Hey @cuishuang,

Nice catch.

Thank you so much for the fix 🎉 👏

@pgimalac pgimalac added changelog/no-changelog team/agent-shared-components qa/done QA done before merge and regressions are covered by tests labels Oct 3, 2024
Copy link
Member

@GustavoCaso GustavoCaso left a comment

Choose a reason for hiding this comment

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

LGTM 🎉
Thanks again for the contribution

@GustavoCaso GustavoCaso modified the milestones: 7.58.0, 7.59.0 Oct 3, 2024
@GustavoCaso
Copy link
Member

/merge

@dd-devflow
Copy link

dd-devflow bot commented Oct 3, 2024

🚂 MergeQueue: pull request added to the queue

The median merge time in main is 25m.

Use /merge -c to cancel this operation!

@dd-mergequeue dd-mergequeue bot merged commit 7fac5ea into DataDog:main Oct 3, 2024
253 of 255 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
changelog/no-changelog qa/done QA done before merge and regressions are covered by tests team/agent-shared-components
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants