Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

migrate to fastnear #358

Merged
merged 9 commits into from
Dec 24, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
clear deadcode
  • Loading branch information
kobayurii committed Dec 24, 2024
commit 17dfc8ae90c881eb782d481880fa90ef1ac80a91
23 changes: 0 additions & 23 deletions rpc-server/src/utils.rs
Original file line number Diff line number Diff line change
@@ -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::fastnear::fetchers::fetch_last_block(&fastnear_client)