fix: return very important comment

This commit is contained in:
CleverWild
2026-03-19 17:52:11 +01:00
parent 77c3babec7
commit 434738bae5

View File

@@ -99,6 +99,7 @@ async fn request_client_approval(
while let Some(result) = pool.join_next().await {
match result {
Ok(Ok(approved)) => {
// cancel other pending requests
let _ = cancel_tx.send(());
return Ok(approved);
}
@@ -153,7 +154,7 @@ impl MessageRouter {
ctx: &mut Context<Self, DelegatedReply<Result<bool, ApprovalError>>>,
) -> DelegatedReply<Result<bool, ApprovalError>> {
let (reply, Some(reply_sender)) = ctx.reply_sender() else {
panic!("Exptected `request_client_approval` to have callback channel");
panic!("Expected `request_client_approval` to have callback channel");
};
let weak_refs = self