Skip to content

Commit

Permalink
cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
pompon0 committed Apr 3, 2024
1 parent 924ec2f commit 3e37015
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
6 changes: 4 additions & 2 deletions node/tools/src/bin/deployer.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
//! Deployer for the kubernetes cluster.
use clap::Parser;
use std::collections::HashMap;
use std::net::{Ipv4Addr, SocketAddr};
use std::{
collections::HashMap,
net::{Ipv4Addr, SocketAddr},
};
use zksync_consensus_roles::{node::SecretKey, validator};
use zksync_consensus_tools::{k8s, k8s::ConsensusNode, AppConfig, NODES_PORT};

Expand Down
2 changes: 1 addition & 1 deletion node/tools/src/bin/localnet_config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
use anyhow::Context as _;
use clap::Parser;
use rand::Rng;
use std::collections::{HashMap, HashSet};
use std::{
collections::{HashMap, HashSet},
fs,
net::{Ipv4Addr, SocketAddr},
path::PathBuf,
Expand Down
1 change: 1 addition & 0 deletions node/tools/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ impl Cli {
}
}

/// Overrides `cfg.public_addr`, based on the `PUBLIC_ADDR` env variable.
fn check_public_addr(cfg: &mut AppConfig) -> anyhow::Result<()> {
if let Ok(public_addr) = std::env::var("PUBLIC_ADDR") {
cfg.public_addr = std::net::SocketAddr::new(public_addr.parse()?, NODES_PORT).into();
Expand Down

0 comments on commit 3e37015

Please sign in to comment.