Skip to content

Commit

Permalink
ref(actix): Migrate the RelayCache actor (#1485)
Browse files Browse the repository at this point in the history
Updates the Relay cache to run as Tokio service. The upstream query is
moved to a background task with its own mpsc. All other operations, such
as updating the internal map and retrieving relay information, run
sequentially in the service.
  • Loading branch information
jan-auer authored Sep 21, 2022
1 parent d77246d commit 0b3eb1b
Show file tree
Hide file tree
Showing 7 changed files with 273 additions and 273 deletions.
1 change: 1 addition & 0 deletions relay-common/src/retry.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ const DEFAULT_RANDOMIZATION: f64 = 0.0;
const INITIAL_INTERVAL: u64 = 1000;

/// A retry interval generator that increases timeouts with exponential backoff.
#[derive(Debug)]
pub struct RetryBackoff {
backoff: ExponentialBackoff,
attempt: usize,
Expand Down
Loading

0 comments on commit 0b3eb1b

Please sign in to comment.