agent: Drop the Option for LinuxContainer.cgroup_manager

Cgroup manager for a container will always be created.
Thus, dropping the option for LinuxContainer.cgroup_manager
is feasible and could simplify the code.

Fixes: #5778

Signed-off-by: Yuan-Zhuo <yuanzhuo0118@outlook.com>
This commit is contained in:
Yuan-Zhuo
2022-12-07 13:40:38 +08:00
parent 326d589ff5
commit 7fdbbcda82
4 changed files with 41 additions and 93 deletions

View File

@@ -337,7 +337,6 @@ impl ContainerLauncher {
self.runner
.cgroup_manager
.as_ref()
.unwrap()
.as_any()?
.downcast_ref::<CgroupManager>()
.unwrap()