Skip to content
This repository has been archived by the owner on Feb 27, 2024. It is now read-only.

Error Actix 3 #19

Open
pikitgb opened this issue Aug 9, 2021 · 0 comments
Open

Error Actix 3 #19

pikitgb opened this issue Aug 9, 2021 · 0 comments

Comments

@pikitgb
Copy link

pikitgb commented Aug 9, 2021

Hi I keep getting this error

rror[E0271]: type mismatch resolving `<RateLimiter<MemoryStoreActor> as Transform<<impl ServiceFactory as ServiceFactory>::Service>>::Request == ServiceRequest`
   --> src/main.rs:164:27
    |
164 |     App::new().wrap(cors).wrap(ratelimiter)
    |                           ^^^^ expected struct `actix_web::service::ServiceRequest`, found struct `ServiceRequest`
    |
    = note: perhaps two different versions of crate `actix_web` are being used?
  let ratelimiter = RateLimiter::new(
      MemoryStoreActor::from(store.clone()).start())
          .with_interval(Duration::from_secs(3))
          .with_max_requests(10);

actix-ratelimit = "0.3.1"
actix-web = { version = "3.0.0", features=["openssl"] }

while trying to update to actix 3 not sure what i'm doing wrong

Thanks a lot

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant