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);
Hi I keep getting this error
while trying to update to actix 3 not sure what i'm doing wrong
Thanks a lot