mirror of
https://github.com/containers/youki
synced 2025-04-30 13:20:17 +02:00
fix: cargo fmt
Signed-off-by: xujihui1985 <xujihui1985@gmail.com>
This commit is contained in:
parent
4bdef55f0f
commit
a01ea0a0be
@ -204,10 +204,7 @@ impl Memory {
|
||||
Ok(memory_data)
|
||||
}
|
||||
|
||||
fn set_oom_control(
|
||||
cgroup_root: &Path,
|
||||
disable_oom_killer: bool,
|
||||
) -> Result<(), WrappedIoError> {
|
||||
fn set_oom_control(cgroup_root: &Path, disable_oom_killer: bool) -> Result<(), WrappedIoError> {
|
||||
if disable_oom_killer {
|
||||
common::write_cgroup_file(cgroup_root.join(CGROUP_MEMORY_OOM_CONTROL), 1)
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user