mirror of
https://github.com/actix/examples
synced 2025-06-28 18:00:37 +02:00
chore: fmt
This commit is contained in:
@ -2,9 +2,8 @@ use std::io;
|
||||
|
||||
use actix_governor::{Governor, GovernorConfigBuilder};
|
||||
use actix_web::{
|
||||
middleware,
|
||||
App, HttpResponse, HttpServer, middleware,
|
||||
web::{self},
|
||||
App, HttpResponse, HttpServer,
|
||||
};
|
||||
|
||||
mod rate_limit;
|
||||
|
@ -3,16 +3,16 @@
|
||||
use std::{
|
||||
cell::RefCell,
|
||||
cmp::min,
|
||||
future::{ready, Ready},
|
||||
future::{Ready, ready},
|
||||
};
|
||||
|
||||
use actix_web::{
|
||||
body::EitherBody,
|
||||
dev::{forward_ready, Service, ServiceRequest, ServiceResponse, Transform},
|
||||
Error, HttpResponse,
|
||||
body::EitherBody,
|
||||
dev::{Service, ServiceRequest, ServiceResponse, Transform, forward_ready},
|
||||
};
|
||||
use chrono::{DateTime, Utc};
|
||||
use futures_util::{future::LocalBoxFuture, FutureExt as _, TryFutureExt as _};
|
||||
use futures_util::{FutureExt as _, TryFutureExt as _, future::LocalBoxFuture};
|
||||
|
||||
#[doc(hidden)]
|
||||
pub struct RateLimitService<S> {
|
||||
|
Reference in New Issue
Block a user