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

Remove slice capacity hint in x/sync #1350

Merged
merged 5 commits into from
Apr 24, 2023
Merged

Remove slice capacity hint in x/sync #1350

merged 5 commits into from
Apr 24, 2023

Conversation

danlaine
Copy link
Collaborator

Why this should be merged

I think this is a bit cleaner -- the arg was called maxSize but it wasn't actually a max size. If we want we can provide a constant to use as a hint but I think having an argument for this is unnecessary and confusing.

How this works

Remove slice capacity hint / function parameter.

How this was tested

Existing UT.

@danlaine danlaine self-assigned this Apr 14, 2023
@danlaine danlaine changed the base branch from master to dev April 14, 2023 17:18
@danlaine danlaine merged commit 0ff1a2a into dev Apr 24, 2023
@danlaine danlaine deleted the sync-remove-hint branch April 24, 2023 13:35
@patrick-ogrady patrick-ogrady added this to the v1.10.1 milestone Apr 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants