Skip to content

Commit

Permalink
Merge branch 'master' into dependabot/cargo/redis-0.25
Browse files Browse the repository at this point in the history
  • Loading branch information
robjtede committed Jun 9, 2024
2 parents 1ca282a + 433c926 commit 2ea4689
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion actix-cors/src/builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ impl Cors {
/// See [`Cors::allowed_methods`] for more info on allowed methods.
pub fn allow_any_method(mut self) -> Cors {
if let Some(cors) = cors(&mut self.inner, &self.error) {
cors.allowed_methods = ALL_METHODS_SET.clone();
ALL_METHODS_SET.clone_into(&mut cors.allowed_methods);
}

self
Expand Down
2 changes: 1 addition & 1 deletion actix-limitation/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ impl Limiter {
let key = key.into();
let expires = self.period.as_secs();

let mut connection = self.client.get_tokio_connection().await?;
let mut connection = self.client.get_multiplexed_tokio_connection().await?;

// The seed of this approach is outlined Atul R in a blog post about rate limiting using
// NodeJS and Redis. For more details, see https://blog.atulr.com/rate-limiter
Expand Down

0 comments on commit 2ea4689

Please sign in to comment.