Skip to content

Commit

Permalink
comply with rustfmt
Browse files Browse the repository at this point in the history
  • Loading branch information
tanmaykm committed Jun 23, 2022
1 parent 3affeef commit 3c21b08
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion core-dump-agent/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -417,7 +417,8 @@ async fn run_polling_agent(core_location: &str) {

fn generate_crio_config(host_location: &str) -> Result<(), std::io::Error> {
info!("Generating crio file");
let endpoint = env::var("CRIO_ENDPOINT").unwrap_or_else(|_| "unix:///run/containerd/containerd.sock".to_string());
let endpoint = env::var("CRIO_ENDPOINT")
.unwrap_or_else(|_| "unix:///run/containerd/containerd.sock".to_string());
let destination = format!("{}/{}", host_location, "crictl.yaml");
let mut crictl_file = File::create(destination)?;
let text = format!("runtime-endpoint: {}\nimage-endpoint: {}\ntimeout: 2\ndebug: false\npull-image-on-create: false", endpoint, endpoint);
Expand Down

0 comments on commit 3c21b08

Please sign in to comment.