forked from ooni/probe-cli
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cleanup(engine): do not expose LookupLocationContext (ooni#1537)
Potentially, this code would cause a behavioral change in that once the probe location has been found, it would not change again and it might be a problem for very-long-running sessions. However: 1. the Android codebase does not keep a reference to a session for a very long time and anyway the longest-running sessions are those used for running experiments; 2. the correct behavior would be for MaybeLookupLocationContext to cache the results only for a limited amount of time. Because of all these considerations, it actually makes sense to say that replacing LookupLocationContext with MaybeLookupLocationContext and engine.Session accessors is the ~same. The net benefit for us is that we can further reduce the surface of interaction between clients and the engine code. A simpler API surface is also simpler to document. Part of ooni/probe#2700
- Loading branch information
1 parent
725c466
commit f9cb93e
Showing
3 changed files
with
12 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters