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

Change UpdateMetrics signature to accept options and return error. #836

Merged
merged 1 commit into from
Mar 23, 2023

Conversation

cristiangreco
Copy link
Contributor

@cristiangreco cristiangreco commented Mar 2, 2023

Refactor the signature of UpdateMetrics (entry point if you use yace as a library) to accept a variadic list of options funcs rather than a lengthy list of parameters, and to return an error (currently always nil, but will be used to bubble up errors from the pkg code).

@cristiangreco cristiangreco force-pushed the cristian/update-metrics-signature branch from 0484fb3 to 3920f35 Compare March 23, 2023 19:47
Refactor the signature of `UpdateMetrics` (entry point if you use yace
as a library) to accept a variadic list of options funcs rather than a
lengthy list of parameters, and to return an error (currently always
nil, but will be used to bubble up errors from the pkg code).
@cristiangreco cristiangreco force-pushed the cristian/update-metrics-signature branch from 3920f35 to 4880f0b Compare March 23, 2023 19:47
@cristiangreco cristiangreco marked this pull request as ready for review March 23, 2023 19:49
@cristiangreco cristiangreco merged commit 7709ad3 into master Mar 23, 2023
@cristiangreco cristiangreco deleted the cristian/update-metrics-signature branch March 23, 2023 19:50
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.

1 participant