-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(enginenetx): introduce stats and make tactic a struct (#1291)
This diff refactors the code to introduce a stats interface and to make the tactic a struct ~without methods attached. We transform the tactic into a struct because we're planning on storing the tactics on disk and loading them. We need stats to track what is working and choose which is the best tactic that we should employ. In light of these two needs, it makes sense to transfer the reporting methods that previously were part of the tactic interface to stats. With this diff, we temporarily lost the possibility of choosing which handshaker to use, which was not implemented anyway and needs some more work to reason about how we'd store this information on disk. Part of ooni/probe#2531
- Loading branch information
1 parent
19f3787
commit 7110bb9
Showing
5 changed files
with
157 additions
and
259 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
Oops, something went wrong.