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: use (*Session).NewSubmitter() #1539

Merged
merged 1 commit into from
Apr 3, 2024
Merged

cleanup: use (*Session).NewSubmitter() #1539

merged 1 commit into from
Apr 3, 2024

Conversation

bassosimone
Copy link
Contributor

This diff modifies existing code to use (*Session).NewSubmitter() rather than using (*Session).NewProbeServicesClient() and then using (*probeservices.Client).NewSubmitter().

After this change, we're able to hide (*Session).NewProbeServicesClient() and we've reduced the API surface used by clients.

Ideally, we would like clients to only use the engine API. In turn, this will simplify documenting the interactions with the probe services API.

Part of ooni/probe#2700

This diff modifies existing code to use (*Session).NewSubmitter()
rather than using (*Session).NewProbeServicesClient() and then using
(*probeservices.Client).NewSubmitter().

After this change, we're able to hide (*Session).NewProbeServicesClient()
and we've reduced the API surface used by clients.

Ideally, we would like clients to only use the engine API. In turn, this
will simplify documenting the interactions with the probe services API.

Part of ooni/probe#2700
@bassosimone bassosimone requested a review from hellais as a code owner April 3, 2024 06:30
@bassosimone bassosimone merged commit 3043c92 into master Apr 3, 2024
26 checks passed
@bassosimone bassosimone deleted the issue/2700c branch April 3, 2024 06:46
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