Skip to content

Commit

Permalink
tidy
Browse files Browse the repository at this point in the history
  • Loading branch information
esemeniuc committed May 18, 2024
1 parent b9da239 commit 6e52c39
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions transaction-relayer/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -426,10 +426,10 @@ fn main() {
let staked_nodes_overrides = match args.staked_nodes_overrides {
None => StakedNodesOverrides::default(),
Some(p) => {
let file = fs::File::open(&p).unwrap_or_else(|_| panic!("Failed to open staked nodes overrides file: {:?}",
&p));
serde_yaml::from_reader(file).unwrap_or_else(|_| panic!("Failed to read staked nodes overrides file: {:?}",
&p))
let file = fs::File::open(&p)
.unwrap_or_else(|_| panic!("Failed to open staked nodes overrides file: {p:?}"));
serde_yaml::from_reader(file)
.unwrap_or_else(|_| panic!("Failed to read staked nodes overrides file: {p:?}"))
}
};
let (tpu, verified_receiver) = Tpu::new(
Expand Down Expand Up @@ -503,8 +503,7 @@ fn main() {
leader_cache.handle(),
public_ip,
(args.tpu_quic_port..args.tpu_quic_port + args.num_tpu_quic_servers).collect(),
(args.tpu_quic_fwd_port..args.tpu_quic_fwd_port + args.num_tpu_fwd_quic_servers)
.collect(),
(args.tpu_quic_fwd_port..args.tpu_quic_fwd_port + args.num_tpu_fwd_quic_servers).collect(),
health_manager.handle(),
exit.clone(),
ofac_addresses,
Expand Down

0 comments on commit 6e52c39

Please sign in to comment.