summaryrefslogtreecommitdiff
path: root/crates/tor-log-ratelim/src
Commit message (Collapse)AuthorAgeFilesLines
* maint/add_warning: Run script to add new warningGabriela Moldovan2026-01-271-0/+1
| | | | This adds the lint to all our crates.
* tor-log-ratelim: don't log "now working" repeatedlySteven Engler2026-01-202-22/+27
|
* tor-log-ratelim: added field name to tuple structSteven Engler2026-01-201-8/+13
|
* tor-log-ratelim: avoid logging when there's no updateSteven Engler2026-01-204-7/+12
| | | | | | Adds a new `AppearsResolved` status to indicate that there have been successes and no failures. The `Dormant` status now means that there has been no activity.
* tor-log-ratelim: ran cargo fmtSteven Engler2026-01-201-16/+17
|
* tor-log-ratelim: change if statement to matchSteven Engler2026-01-201-3/+4
|
* Fix name of clippy lint to unchecked_time_subtraction (2)Ian Jackson2025-11-061-1/+1
| | | | Run maint/add_warning
* all: run cargo fmtSteven Engler2025-11-041-1/+1
|
* all: replace all uses of `futures::task::SpawnExt` with `tor_rtcompat::SpawnExt`Steven Engler2025-11-041-1/+1
|
* Remove "doc_auto_cfg" incantation from all crates.Nick Mathewson2025-09-291-1/+1
| | | | This feature has been removed from nightly, in favor of doc_cfg.
* Fix warnings and errors from edition 2024.Nick Mathewson2025-08-071-2/+2
| | | | | | | | | | The two main causes of errors were: - Since some of the lifetime rules have changed, we no longer need to do as many "bind a variable and immediately return it" patterns, and so clippy now warns about them. - We needed to adjust the explicit captures (`use<...>`) in a couple of our RPIT instances.
* Switch Cargo.toml files to edition 2024.Nick Mathewson2025-08-072-4/+4
| | | | | | | | | | | | | | First, run ``` git grep -l "^edition =" | xargs perl -i -pe 's/^edition *=.*/edition = "2024"/;' ``` Second, manually verify that all Cargo.toml files have changed, and nothing else has changed. Third, run cargo fmt again.
* Temporarily suppress mismatched_lifetime_syntaxes.Gabriela Moldovan2025-07-071-0/+1
| | | | See #2060.
* tor-log-ratelim: Removed dependency on `once_cell`hashcatHitman2025-06-142-3/+3
| | | | | | - Replaced `once_cell::sync::Lazy` with `std::sync::LazyLock`. Signed-off-by: hashcatHitman <[email protected]>
* tor-log-ratelim: Replace OnceCell with OnceLockhashcatHitman2025-04-171-3/+2
| | | | | - [`once_cell::sync::OnceCell`] has been replaced by [`std::sync::OnceLock`], resolving a TODO.
* clippy: deny `mod_module_files`Steven Engler2025-01-061-0/+1
| | | | | | Denies 'mod.rs' files for consistency. https://rust-lang.github.io/rust-clippy/master/index.html#mod_module_files
* add_warnings, *: Allow clippy::needless_lifetimesNick Mathewson2024-12-031-0/+1
| | | | | | | | In 1.83, this warning triggers on many of our crates. We're thinking of fixing them all, but for now, we're going to disable the warning. This is part of #1765.
* 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.