Update middleware.md (#2967)

This commit is contained in:
Flamenco 2024-10-09 06:22:06 -04:00 committed by Jonas Platte
parent a7b7d56cfb
commit 8d7eada034
No known key found for this signature in database
GPG key ID: 7D261D771D915378

View file

@ -190,7 +190,7 @@ You should use these when
## `tower::Service` and `Pin<Box<dyn Future>>` ## `tower::Service` and `Pin<Box<dyn Future>>`
For maximum control (and a more low level API) you can write you own middleware For maximum control (and a more low level API) you can write your own middleware
by implementing [`tower::Service`]: by implementing [`tower::Service`]:
Use [`tower::Service`] with `Pin<Box<dyn Future>>` to write your middleware when: Use [`tower::Service`] with `Pin<Box<dyn Future>>` to write your middleware when: