Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
prybalko committed Nov 15, 2023
1 parent 102447c commit 836288e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
2 changes: 1 addition & 1 deletion cli/src/collector/export.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ pub(crate) fn export_specs(config: &AppConfig, fetcher: impl Fetcher) -> Result<
if let Some(online_specs) = online.as_ref() {
if let Some(online_chain_specs) = online_specs.get(&chain.portal_id()) {
warn!(
"Unable to fetch specs for {}. Keep current online specs: {}.",
"Unable to fetch specs for {}. Keep current online specs. Err: {}.",
chain.name, e
);
export_specs.insert(chain.portal_id(), online_chain_specs.clone());
Expand Down
6 changes: 0 additions & 6 deletions cli/src/deployment_checker/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,11 @@ use std::process::exit;

use anyhow::Result;
use log::{info, warn};
use serde::{Deserialize, Serialize};

use crate::collector::export::export_specs;
use crate::fetch::{fetch_deployed_data, RpcFetcher};
use crate::AppConfig;

#[derive(Serialize, Deserialize)]
struct PkgJson {
homepage: String,
}

// Check whether the deployment is up to date.
// Exit code 12 if re-deploy is required
pub(crate) fn check_deployment(config: AppConfig) -> Result<()> {
Expand Down

0 comments on commit 836288e

Please sign in to comment.