Skip to content

Commit

Permalink
chore(node): Remove version sync task (#2125)
Browse files Browse the repository at this point in the history
## What ❔

Removes the version sync task from EN.

## Why ❔

The migration was completed a while ago.

## Checklist

<!-- Check your PR fulfills the following items. -->
<!-- For draft PRs check the boxes as you complete them. -->

- [ ] PR title corresponds to the body of PR (we generate changelog
entries from PRs).
- [ ] Tests for the changes have been added / updated.
- [ ] Documentation comments have been added / updated.
- [ ] Code has been formatted via `zk fmt` and `zk lint`.
- [ ] Spellcheck has been run via `zk spellcheck`.
  • Loading branch information
popzxc authored Jun 3, 2024
1 parent dc5a918 commit 5b161d3
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 146 deletions.
16 changes: 1 addition & 15 deletions core/bin/external_node/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@ mod metadata;
mod metrics;
#[cfg(test)]
mod tests;
mod version_sync_task;

/// Creates the state keeper configured to work in the external node mode.
#[allow(clippy::too_many_arguments)]
Expand Down Expand Up @@ -913,20 +912,7 @@ async fn run_node(
);
let validate_chain_ids_task = tokio::spawn(validate_chain_ids_task.run(stop_receiver.clone()));

let version_sync_task_pool = connection_pool.clone();
let version_sync_task_main_node_client = main_node_client.clone();
let mut stop_receiver_for_version_sync = stop_receiver.clone();
let version_sync_task = tokio::spawn(async move {
version_sync_task::sync_versions(
version_sync_task_pool,
version_sync_task_main_node_client,
)
.await?;

stop_receiver_for_version_sync.changed().await.ok();
Ok(())
});
let mut task_handles = vec![metrics_task, validate_chain_ids_task, version_sync_task];
let mut task_handles = vec![metrics_task, validate_chain_ids_task];
task_handles.extend(prometheus_task);

// Make sure that the node storage is initialized either via genesis or snapshot recovery.
Expand Down
131 changes: 0 additions & 131 deletions core/bin/external_node/src/version_sync_task.rs

This file was deleted.

0 comments on commit 5b161d3

Please sign in to comment.