From 691884e20a6d894e8515838be07a13e3d4178aad Mon Sep 17 00:00:00 2001 From: benedettadavico Date: Fri, 9 Feb 2024 16:32:53 +0100 Subject: [PATCH] add return statement --- .../node/client_handling/websocket/connection_handler/fresh.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gateway/src/node/client_handling/websocket/connection_handler/fresh.rs b/gateway/src/node/client_handling/websocket/connection_handler/fresh.rs index 8f9dafe112..c37b0acaae 100644 --- a/gateway/src/node/client_handling/websocket/connection_handler/fresh.rs +++ b/gateway/src/node/client_handling/websocket/connection_handler/fresh.rs @@ -366,7 +366,7 @@ where let Some(client_protocol_version) = client_protocol else { warn!("the client we're connected to has not specified its protocol version. It's probably running version < 1.1.X, but that's still fine for now. It will become a hard error in 1.2.0"); // note: in +1.2.0 we will have to return a hard error here - Ok(INITIAL_PROTOCOL_VERSION) + return Ok(INITIAL_PROTOCOL_VERSION) }; // a v2 gateway will understand v1 requests, but v1 client will not understand v2 responses