mirror of
https://github.com/containers/youki
synced 2024-11-23 09:21:57 +01:00
Cleanup
This commit is contained in:
parent
419284137e
commit
9cff02435b
@ -176,10 +176,6 @@ pub fn create_cgroup_manager<P: Into<PathBuf>>(
|
||||
|
||||
match cgroup_setup {
|
||||
CgroupSetup::Legacy | CgroupSetup::Hybrid => {
|
||||
if systemd_cgroup {
|
||||
bail!("resource control with systemd is not supported on cgroup v1");
|
||||
}
|
||||
|
||||
log::info!("cgroup manager V1 will be used");
|
||||
Ok(Box::new(v1::manager::Manager::new(cgroup_path.into())?))
|
||||
}
|
||||
|
@ -174,7 +174,7 @@ impl SystemdClient for Client {
|
||||
let cgroup_root = proxy
|
||||
.control_group()
|
||||
.context("failed to get systemd control group")?;
|
||||
PathBuf::try_from(cgroup_root)
|
||||
.with_context(|| format!("parse systemd control cgroup into path"))
|
||||
PathBuf::try_from(&cgroup_root)
|
||||
.with_context(|| format!("parse systemd control cgroup {} into path", cgroup_root))
|
||||
}
|
||||
}
|
||||
|
@ -305,10 +305,6 @@ impl CgroupManager for Manager {
|
||||
)
|
||||
})?;
|
||||
|
||||
let cg = self.client.control_cgroup_root().context("cgroup root")?;
|
||||
log::debug!("CONTROL GROUP ROOT: {:?}", cg);
|
||||
log::debug!("MANAGER {:?}", self);
|
||||
|
||||
Ok(())
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user