Skip to content

Commit

Permalink
feat: Fixed clippy errors
Browse files Browse the repository at this point in the history
  • Loading branch information
bsenth200 committed Oct 30, 2024
1 parent 989f41d commit c713666
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions core/main/src/broker/broker_utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ use ripple_sdk::{
tokio::{self, net::TcpStream},
uuid::Uuid,
};
use serde_json::{from_value, Value};
use serde_json::Value;
use std::time::Duration;
use tokio_tungstenite::{client_async, tungstenite::Message, WebSocketStream};

Expand Down Expand Up @@ -101,14 +101,14 @@ impl BrokerUtils {

if let Ok(res) = resp {
if let Some(ExtnResponse::Value(val)) = res.payload.extract::<ExtnResponse>() {
return Ok(Value::from(val));
return Ok(val);
}
}

// TODO: Update error handling
Err(jsonrpsee::core::Error::Call(CallError::Custom {
code: CAPABILITY_NOT_AVAILABLE,
message: format!("{} is not available", method.to_string()),
message: format!("{} is not available", method),
data: None,
}))
}
Expand Down
2 changes: 1 addition & 1 deletion core/main/src/broker/endpoint_broker.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ use crate::{
broker::broker_utils::BrokerUtils,
firebolt::firebolt_gateway::{FireboltGatewayCommand, JsonRpcError},
service::extn::ripple_client::RippleClient,
state::{self, platform_state::PlatformState},
state::platform_state::PlatformState,
utils::router_utils::{
add_telemetry_status_code, get_rpc_header, return_api_message_for_transport,
return_extn_response,
Expand Down

0 comments on commit c713666

Please sign in to comment.