mirror of
https://github.com/actix/actix-extras.git
synced 2025-08-30 11:08:08 +02:00
simplify middleware api; fix examples
This commit is contained in:
@@ -61,9 +61,9 @@ struct MiddlewareTest {
|
||||
}
|
||||
|
||||
impl middlewares::Middleware for MiddlewareTest {
|
||||
fn start(&self, req: HttpRequest) -> middlewares::Started {
|
||||
fn start(&self, _: &mut HttpRequest) -> middlewares::Started {
|
||||
self.start.store(self.start.load(Ordering::Relaxed) + 1, Ordering::Relaxed);
|
||||
middlewares::Started::Done(req)
|
||||
middlewares::Started::Done
|
||||
}
|
||||
|
||||
fn response(&self, _: &mut HttpRequest, resp: HttpResponse) -> middlewares::Response {
|
||||
|
Reference in New Issue
Block a user