File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed
crates/service/src/middleware Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,10 @@ use crate::service::TapReceipt;
88
99/// Injects tap receipts in the extensions
1010///
11+ /// A request won't always have a receipt because they might be
12+ /// free queries.
13+ /// That's why we don't fail with 400.
14+ ///
1115/// This is useful to not deserialize multiple times the same receipt
1216pub async fn receipt_middleware ( mut request : Request , next : Next ) -> Response {
1317 if let Ok ( TypedHeader ( receipt) ) = request. extract_parts :: < TypedHeader < TapReceipt > > ( ) . await {
Original file line number Diff line number Diff line change @@ -34,6 +34,10 @@ impl From<Sender> for String {
3434
3535/// Injects the sender found from the signer in the receipt
3636///
37+ /// A request won't always have a receipt because they might be
38+ /// free queries.
39+ /// That's why we don't fail with 400.
40+ ///
3741/// Requires Receipt extension
3842pub async fn sender_middleware (
3943 State ( state) : State < SenderState > ,
You can’t perform that action at this time.
0 commit comments