Skip to content

Commit 5d8b0fe

Browse files
committed
moved request appropriately
1 parent cb21b5b commit 5d8b0fe

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

sentry/src/lib.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -379,18 +379,18 @@ async fn channels_router<A: Adapter + 'static>(
379379
CHANNEL_SPENDER_LEAF_AND_TOTAL_DEPOSITED.captures(&path),
380380
method,
381381
) {
382-
req = Chain::new()
383-
.chain(AuthRequired)
384-
.chain(ChannelLoad)
385-
.apply(req, app)
386-
.await?;
387382
let param = RouteParams(vec![
388383
caps.get(1)
389384
.map_or("".to_string(), |m| m.as_str().to_string()), // channel ID
390385
caps.get(2)
391386
.map_or("".to_string(), |m| m.as_str().to_string()), // spender addr
392387
]);
393388
req.extensions_mut().insert(param);
389+
req = Chain::new()
390+
.chain(AuthRequired)
391+
.chain(ChannelLoad)
392+
.apply(req, app)
393+
.await?;
394394

395395
get_spender_limits(req, app).await
396396
} else {

0 commit comments

Comments
 (0)