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

cleanup: SaveMeasurement doesn't belong to Experiment #1541

Merged
merged 1 commit into from
Apr 3, 2024

Conversation

bassosimone
Copy link
Contributor

This cleanup may be a bit tangential, but it still makes sense in the context of what I'm doing, i.e., cleaning up the engine API and ensuring we mostly use engine functionality in clients.

While doing this, it occurred to me that I could avoid keeping the SaveMeasurement method attached to an experiment, and I could instead just make it a pure function.

This reduces the complexity of the *engine.Experiment type.

While there, slightly improve testing.

Part of ooni/probe#2700

This cleanup may be a bit tangential, but it still makes sense in
the context of what I'm doing, i.e., cleaning up the engine API and
ensuring we mostly use engine functionality in clients.

While doing this, it occurred to me that I could avoid keeping the
SaveMeasurement method attached to an experiment, and I could instead
just make it a pure function.

This reduces the complexity of the *engine.Experiment type.

While there, slightly improve testing.

Part of ooni/probe#2700
@bassosimone bassosimone requested a review from hellais as a code owner April 3, 2024 07:59
@bassosimone bassosimone merged commit 244dd1e into master Apr 3, 2024
26 checks passed
@bassosimone bassosimone deleted the issue/2700d branch April 3, 2024 08:16
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