Skip to content

Commit

Permalink
Remove unneeded Arc.
Browse files Browse the repository at this point in the history
  • Loading branch information
TSnake41 committed Aug 29, 2023
1 parent e250fd2 commit 5d4c553
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions xcp-metrics-tools/src/bin/xcp-metrics-openmetrics-proxy.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
use std::{
net::{IpAddr, Ipv4Addr, SocketAddr},
path::Path,
sync::Arc,
};

use clap::{command, Parser};
Expand Down Expand Up @@ -41,7 +40,7 @@ async fn redirect_openmetrics(

#[tokio::main]
async fn main() {
let args = Arc::new(Args::parse());
let args = Args::parse();
let daemon_path = Path::new(&args.daemon_path).to_path_buf();

let service_fn = make_service_fn(|addr: &AddrStream| {
Expand Down

0 comments on commit 5d4c553

Please sign in to comment.