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

increase interval check optimistic_block status to 2 sec #388

Merged
merged 2 commits into from
Jan 15, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
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
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### What's Changed
* Migrate from lake data to fastnear data
* Add metrics to calculate the number of blocks which fetched from the cache and fastnear
* Add blocks chunks cache and optimize cache layer for read-rpc-server

## [0.3.3](https://github.com/near/read-rpc/releases/tag/v0.3.3)

Expand Down
4 changes: 2 additions & 2 deletions rpc-server/src/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -262,8 +262,8 @@ async fn task_optimistic_block_status() {
.with_label_values(&["optimistic"])
.get();
loop {
// check every second
tokio::time::sleep(std::time::Duration::from_secs(1)).await;
// check every 2 seconds
tokio::time::sleep(std::time::Duration::from_secs(2)).await;

// get the current final block height
let current_final = crate::metrics::LATEST_BLOCK_HEIGHT_BY_FINALITIY
Expand Down
Loading