summaryrefslogtreecommitdiff
path: root/crates/tor-log-ratelim/src
Commit message (Collapse)AuthorAgeFilesLines
* tor-log-ratelim: test: add logstate testskn0sys2024-08-201-0/+64
| | | | | | This commit adds the display_recovery and display_problem tests. Line coverage is increased from 0 to 96.97 percent.
* Re-run maint/add_warning.Nick Mathewson2024-05-061-2/+2
| | | | This commit is automatically generated.
* Fix typos in doc commentsTobias Stoeckmann2024-03-061-1/+1
|
* deny clippy::unchecked_duration_subtractiontrinity-1686a2024-02-291-0/+1
|
* Fix a broken doc linkNick Mathewson2023-11-161-1/+1
|
* ratelim: simplify LogState::reset.Nick Mathewson2023-11-161-4/+1
|
* ratelim: switch time list to start very short.Nick Mathewson2023-11-161-4/+20
| | | | | | | Since we batch up even the earliest events, it's important that the first interval be quite short: otherwise, the user might wait minutes between when a problem first occurs and when it is first reported.
* ratelim: Add a note about summary accuracyNick Mathewson2023-11-161-0/+6
|
* ratelim: Add a comment about behavior on reactor shutdownNick Mathewson2023-11-161-0/+5
|
* Ratelim: use now() to see how long we have been dormantNick Mathewson2023-11-161-9/+22
| | | | Also avoid infinite recursion in implementation of RuntimeSupport.
* ratelim: Note that timeouts are in minutes.Nick Mathewson2023-11-162-11/+2
|
* ratelim: refactor to avoid unreachable codeNick Mathewson2023-11-163-43/+22
| | | | Add a note that this uglifies a hidden API slightly.
* ratelim: rename limiter.rs to ratelim.rsNick Mathewson2023-11-162-5/+5
|
* log_ratelim: Use a real error type for install_runtime()Nick Mathewson2023-11-162-4/+15
|
* log_ratelim: Make final semicolon optional.Nick Mathewson2023-11-161-4/+6
|
* New tor-log-ratelim crateNick Mathewson2023-11-164-0/+827
This crate is meant to provide rate-limited log messages to tell users about problems that can happen too frequently to log individually. This version is based off an earlier design, and off of conversations with @diziet. It still needs tests.