mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-10-22 04:18:53 +00:00
runtime-rs: Merge branch 'main' into runtime-rs-merge-main-1
To keep runtime-rs up to date, we will merge main into runtime-rs every week. Fixes: #4790 Signed-off-by: Zhongtao Hu <zhongtaohu.tim@linux.alibaba.com>
This commit is contained in:
@@ -163,7 +163,7 @@ fn connect(name: &str, global_args: clap::ArgMatches) -> Result<()> {
|
||||
let (logger, _guard) = logging::create_logger(name, crate_name!(), log_level, writer);
|
||||
|
||||
let timeout_nano: i64 = match args.value_of("timeout") {
|
||||
Some(t) => utils::human_time_to_ns(t).map_err(|e| e)?,
|
||||
Some(t) => utils::human_time_to_ns(t)?,
|
||||
None => 0,
|
||||
};
|
||||
|
||||
|
@@ -684,7 +684,7 @@ fn oci_to_ttrpc(bundle_dir: &str, cid: &str, oci: &ociSpec) -> Result<ttrpcSpec>
|
||||
|
||||
let root = match &oci.root {
|
||||
Some(r) => {
|
||||
let ttrpc_root = root_oci_to_ttrpc(bundle_dir, r).map_err(|e| e)?;
|
||||
let ttrpc_root = root_oci_to_ttrpc(bundle_dir, r)?;
|
||||
|
||||
protobuf::SingularPtrField::some(ttrpc_root)
|
||||
}
|
||||
|
Reference in New Issue
Block a user