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

dslx: post-Func.Apply(Maybe[T])-introduction cleanups #1384

Merged
merged 1 commit into from
Oct 25, 2023

Conversation

bassosimone
Copy link
Contributor

@bassosimone bassosimone commented Oct 25, 2023

This diff contains cleanups in dslx after we modified Func.Apply to take a Maybe[T] as input:

  • we don't need anymore to record the failed operation because we can compute that inline, given that now we can write post-operation filters that observe whether the operation failed or succeeded;

  • likewise, we don't need to use counters anymore;

  • likewise, we can remove functions to inspect the first error, because we can compute that inline.

The reference issue is ooni/probe#2613.

@bassosimone bassosimone changed the title x dslx: post Apply(Maybe[T]) cleanups Oct 25, 2023
@bassosimone bassosimone changed the title dslx: post Apply(Maybe[T]) cleanups dslx: post Func.Apply(Maybe[T]) cleanups Oct 25, 2023
@bassosimone bassosimone marked this pull request as ready for review October 25, 2023 10:47
@bassosimone bassosimone requested a review from hellais as a code owner October 25, 2023 10:47
@bassosimone bassosimone changed the title dslx: post Func.Apply(Maybe[T]) cleanups dslx: post-Func.Apply(Maybe[T])-introduction cleanups Oct 25, 2023
@bassosimone bassosimone merged commit e701ddb into master Oct 25, 2023
8 checks passed
@bassosimone bassosimone deleted the issue/2545-small-7 branch October 25, 2023 10:56
Murphy-OrangeMud pushed a commit to Murphy-OrangeMud/probe-cli that referenced this pull request Feb 13, 2024
This diff contains cleanups in dslx after we modified Func.Apply to take
a Maybe[T] as input:

- we don't need anymore to record the failed operation because we can
compute that inline, given that now we can write post-operation filters
that observe whether the operation failed or succeeded;

- likewise, we don't need to use counters anymore;

- likewise, we can remove functions to inspect the first error, because
we can compute that inline.

The reference issue is ooni/probe#2613.
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