Skip to content

Commit

Permalink
proxy next_light_client_block to regular rpc
Browse files Browse the repository at this point in the history
  • Loading branch information
kobayurii committed Jun 5, 2024
1 parent 01905b7 commit 52af2f3
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions rpc-server/src/modules/clients/methods.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,7 @@ pub async fn next_light_client_block(
near_jsonrpc::primitives::types::light_client::RpcLightClientNextBlockRequest::parse(
params,
)?;
crate::metrics::REQUESTS_COUNTER
.with_label_values(&["archive_proxy_next_light_client_block"])
.inc();
match data.near_rpc_client.archival_call(request).await? {
match data.near_rpc_client.call(request).await? {
Some(light_client_block) => Ok(
near_jsonrpc::primitives::types::light_client::RpcLightClientNextBlockResponse {
light_client_block: Some(std::sync::Arc::new(light_client_block)),
Expand Down

0 comments on commit 52af2f3

Please sign in to comment.