diff --git a/native/cpp/CommonCpp/grpc/grpc_client/src/lib.rs b/native/cpp/CommonCpp/grpc/grpc_client/src/lib.rs --- a/native/cpp/CommonCpp/grpc/grpc_client/src/lib.rs +++ b/native/cpp/CommonCpp/grpc/grpc_client/src/lib.rs @@ -263,8 +263,8 @@ .map(|res| res.message) } -fn handle_unexpected_registration_response( - message: Option, +fn handle_unexpected_response( + message: Option, ) -> Status { error!("Received an unexpected message: {:?}", message); Status::invalid_argument("Invalid response data") @@ -312,7 +312,7 @@ } Ok(client_login_start_result.state) } else { - Err(handle_unexpected_registration_response(message)) + Err(handle_unexpected_response(message)) } } @@ -340,7 +340,7 @@ }; send_to_mpsc(tx, registration_request).await } else { - Err(handle_unexpected_registration_response(message)) + Err(handle_unexpected_response(message)) } } @@ -356,7 +356,7 @@ { Ok(access_token) } else { - Err(handle_unexpected_registration_response(message)) + Err(handle_unexpected_response(message)) } }