Merge pull request #5230 from openanolis/nohc

runtime-rs: remove hardcoded string
This commit is contained in:
Zhongtao Hu 2022-09-26 16:01:41 +08:00 committed by GitHub
commit 9d67f5a7e2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -16,6 +16,7 @@ use std::{fs, path::Path, sync::Arc};
use anyhow::{Context, Result};
use common::Sandbox;
use hyper::{server::conn::Http, service::service_fn};
use persist::KATA_PATH;
use tokio::net::UnixListener;
use super::handlers::handler_mux;
@ -76,7 +77,7 @@ impl MgmtServer {
// return sandbox's storage path
pub fn sb_storage_path() -> String {
String::from("/run/kata")
String::from(KATA_PATH)
}
// returns the address of the unix domain socket(UDS) for communication with shim