fmt
This commit is contained in:
parent
1333532d3f
commit
fcd6563887
3 changed files with 5 additions and 10 deletions
|
|
@ -296,9 +296,8 @@ fn set_resource_limits(container: &str) -> Result<()> {
|
|||
let dir = format!("/run/systemd/system/container@{container}.service.d");
|
||||
std::fs::create_dir_all(&dir).with_context(|| format!("create {dir}"))?;
|
||||
let path = format!("{dir}/hyperhive-limits.conf");
|
||||
let content = format!(
|
||||
"[Service]\nMemoryMax={DEFAULT_MEMORY_MAX}\nCPUQuota={DEFAULT_CPU_QUOTA}\n",
|
||||
);
|
||||
let content =
|
||||
format!("[Service]\nMemoryMax={DEFAULT_MEMORY_MAX}\nCPUQuota={DEFAULT_CPU_QUOTA}\n",);
|
||||
std::fs::write(&path, content).with_context(|| format!("write {path}"))?;
|
||||
tracing::info!(
|
||||
%path,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue