mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-08-31 16:36:38 +00:00
runtime-rs: make Container::new async
Fixes: #6714 Signed-off-by: Zixuan Tan <tanzixuan.me@gmail.com>
This commit is contained in:
@@ -46,7 +46,7 @@ pub struct Container {
|
||||
}
|
||||
|
||||
impl Container {
|
||||
pub fn new(
|
||||
pub async fn new(
|
||||
pid: u32,
|
||||
config: ContainerConfig,
|
||||
spec: oci::Spec,
|
||||
|
@@ -78,6 +78,7 @@ impl ContainerManager for VirtContainerManager {
|
||||
self.agent.clone(),
|
||||
self.resource_manager.clone(),
|
||||
)
|
||||
.await
|
||||
.context("new container")?;
|
||||
|
||||
// CreateContainer Hooks:
|
||||
|
Reference in New Issue
Block a user