Skip to content

Commit

Permalink
Fix docs
Browse files Browse the repository at this point in the history
  • Loading branch information
loewenheim committed Mar 11, 2024
1 parent c9c9982 commit 31a80f1
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions crates/symbolicator-service/src/download/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -101,9 +101,11 @@ type CountedFailures = Arc<Mutex<VecDeque<FailureCount>>>;
/// A structure that keeps track of download failures in a given time interval
/// and puts hosts on a block list accordingly.
///
/// The logic works like this: if a host has at least `FAILURE_THRESHOLD` download
/// failures in a window of `TIME_WINDOW` seconds, it will be blocked for a duration of
/// `BLOCK_TIME`.
/// The logic works like this: if a host has at least `failure_threshold` download
/// failures in a window of `time_window_millis` ms, it will be blocked for a duration of
/// `block_time`.
///
/// Hosts included in `never_block` will never be blocked regardless of download_failures.
#[derive(Clone, Debug)]
struct HostDenyList {
time_window_millis: u64,
Expand Down

0 comments on commit 31a80f1

Please sign in to comment.