Skip to content

Commit

Permalink
clear deadcode
Browse files Browse the repository at this point in the history
  • Loading branch information
kobayurii committed Oct 2, 2024
1 parent 0cab25d commit 600acb5
Showing 1 changed file with 0 additions and 23 deletions.
23 changes: 0 additions & 23 deletions rpc-server/src/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -192,30 +192,7 @@ pub async fn update_final_block_regularly(
near_rpc_client: JsonRpcClient,
) {
tracing::info!("Task to get and store final block in the cache started");
// let mut current_protocol_version = blocks_info_by_finality.current_protocol_version().await;
loop {
// TODO:
// Update protocol version from redis regularly
// match finality_blocks_storage.get_protocol_version().await {
// Ok(protocol_version) => {
// if protocol_version != current_protocol_version {
// if let Err(err) = blocks_info_by_finality
// .update_current_protocol_version(protocol_version)
// .await
// {
// tracing::error!("Failed to update protocol version from Redis: {:?}", err);
// } else {
// // If the protocol version is updated from the Redis, update the local value
// // otherwise, we will keep trying to update from the Redis
// current_protocol_version = protocol_version;
// };
// };
// }
// Err(err) => {
// tracing::error!("Failed to get protocol version from Redis: {:?}", err);
// }
// }

// Update final block from fastnear regularly
let streamer_message =
near_lake_framework::providers::fastnear::fetchers::fetch_last_block(&fastnear_client)
Expand Down

0 comments on commit 600acb5

Please sign in to comment.