ooni / probe

OONI Probe network measurement tool for detecting internet censorship
https://ooni.org/install
BSD 3-Clause "New" or "Revised" License
750 stars 142 forks source link

dslx: more idiomatic Operation definition #2615

Closed bassosimone closed 8 months ago

bassosimone commented 8 months ago

We should define Operation as func(context.Context, a A) (B, error), which is the most idiomatic implementation possible, and then take advantage of Operation.Apply to adapt the operation to become a Func.

The overall objective here is to cleanup and review dslx, then start using it in production and rewrite experiments using it. In turn, by doing that, we'll enable collecting better throttling metrics for experiments.