Skip to content

Commit

Permalink
Rename updaters
Browse files Browse the repository at this point in the history
Signed-off-by: deniallugo <[email protected]>
  • Loading branch information
Deniallugo committed Dec 27, 2021
1 parent e7229eb commit 9df352e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions core/bin/server/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ pub enum Component {
RpcWebSocketApi,

// Core components
Updaters,
Fetchers,
EthSender,
Core,
WitnessGenerator,
Expand All @@ -66,7 +66,7 @@ impl FromStr for Component {
"witness-generator" => Ok(Component::WitnessGenerator),
"forced-exit" => Ok(Component::ForcedExit),
"prometheus" => Ok(Component::Prometheus),
"updaters" => Ok(Component::Updaters),
"fetchers" => Ok(Component::Fetchers),
"core" => Ok(Component::Core),
"rejected-task-cleaner" => Ok(Component::RejectedTaskCleaner),
other => Err(format!("{} is not a valid component name", other)),
Expand All @@ -90,7 +90,7 @@ impl Default for ComponentsToRun {
Component::Prometheus,
Component::Core,
Component::RejectedTaskCleaner,
Component::Updaters,
Component::Fetchers,
])
}
}
Expand All @@ -116,7 +116,7 @@ struct Opt {
/// comma-separated list of components to launch
#[structopt(
long,
default_value = "rest-api,web3-api,rpc-api,rpc-websocket-api,eth-sender,witness-generator,forced-exit,prometheus,core,rejected-task-cleaner,updaters"
default_value = "rest-api,web3-api,rpc-api,rpc-websocket-api,eth-sender,witness-generator,forced-exit,prometheus,core,rejected-task-cleaner,fetchers"
)]
components: ComponentsToRun,
}
Expand Down Expand Up @@ -162,7 +162,7 @@ async fn run_server(components: &ComponentsToRun) {
));
}

if components.0.contains(&Component::Updaters) {
if components.0.contains(&Component::Fetchers) {
// Run price updaters
let mut price_tasks = run_price_updaters(connection_pool.clone());
tasks.append(&mut price_tasks);
Expand Down
2 changes: 1 addition & 1 deletion infrastructure/zk/src/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export async function core() {
prepareForcedExitRequestAccount();

await utils.spawn(
'cargo run --bin zksync_server --release -- --components=eth-sender,witness-generator,forced-exit,prometheus,core,rejected-task-cleaner,updaters'
'cargo run --bin zksync_server --release -- --components=eth-sender,witness-generator,forced-exit,prometheus,core,rejected-task-cleaner,fetchers'
);
}

Expand Down

0 comments on commit 9df352e

Please sign in to comment.