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 default options from ResolveStorageOptions #180

Merged
merged 3 commits into from
Aug 28, 2024

Conversation

AlCutter
Copy link
Collaborator

This PR removes the default options param from ResolveStorageOptions.

This is an unnecessary source of complexity at the moment.

BatchMaxAge: defaultQueueMaxAge,
BatchMaxSize: defaultBatchMaxSize,
}, opts...)
opt := tessera.ResolveStorageOptions(opts...)
Copy link
Contributor

Choose a reason for hiding this comment

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

This changes the behaviour of mysql to switch to a batch size of 1 instead of 256?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

It does, but that brings it into line with the others, and I've just changed the "line" to 256 within 250ms.

We can revisit in the future.

Copy link
Contributor

Choose a reason for hiding this comment

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

The defaultBatchMaxSize and defaultQueueMaxAge consts in this file can be removed.

@AlCutter AlCutter merged commit ae47df5 into transparency-dev:main Aug 28, 2024
10 checks passed
@AlCutter AlCutter deleted the no_default_options branch August 28, 2024 15:44
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.

3 participants