From 8079ab47e4281b5ff903f4e2d2462b8746a53207 Mon Sep 17 00:00:00 2001 From: Niels Andriesse Date: Thu, 25 Mar 2021 11:04:11 +1100 Subject: [PATCH] Make comment work with auto-formatting --- src/onion_requests.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/onion_requests.rs b/src/onion_requests.rs index 498eddf..d673a85 100644 --- a/src/onion_requests.rs +++ b/src/onion_requests.rs @@ -48,9 +48,9 @@ async fn handle_decrypted_onion_request( let result = rpc::handle_rpc_call(rpc_call) .await // Turn any error that occurred into an HTTP response - .or_else(super::errors::into_response)?; // Safe because at this point any error should be caught and turned into an HTTP response (i.e. an OK result) - // Encrypt the HTTP response so that it's propagated back to the client that made - // the onion request + // Unwrapping is safe because at this point any error should be caught and turned into an HTTP response (i.e. an OK result) + .or_else(super::errors::into_response)?; + // Encrypt the HTTP response so that it's propagated back to the client that made the onion request return encrypt_response(result, symmetric_key).await; }