runtime-rs: fix some variable names and typos

Fix some not perfect variable names, and some typos in logs.

Fixes: #5820

Signed-off-by: Bin Liu <bin@hyper.sh>
This commit is contained in:
Bin Liu
2022-12-02 14:52:34 +08:00
parent 8246de821f
commit fb2c142f18
5 changed files with 13 additions and 9 deletions

View File

@@ -65,7 +65,7 @@ async fn send_event(
&namespace,
])
.spawn()
.context("sawn cmd")?;
.context("spawn containerd cmd to publish event")?;
let stdin = child.stdin.as_mut().context("failed to open stdin")?;
stdin

View File

@@ -40,7 +40,7 @@ where
let r = req
.try_into()
.map_err(|err| ttrpc::Error::Others(format!("failed to translate from shim {:?}", err)))?;
let logger = sl!().new(o!("steam id" => ctx.mh.stream_id));
let logger = sl!().new(o!("stream id" => ctx.mh.stream_id));
debug!(logger, "====> task service {:?}", &r);
let resp = s
.handler_message(r)