agent/rustjail: (trivial) Clean up comment on process_grpc_to_oci()

This comment appears to be connected specifically with this function, but
has some other items separating it for no particular reason.  It also has
a typo.  Correct both.

Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
This commit is contained in:
David Gibson 2021-04-22 11:29:12 +10:00
parent 210f39a46f
commit 3f5fdae0d8

View File

@ -58,13 +58,12 @@ pub mod validator;
// pub mod user;
//pub mod intelrdt;
use protocols::oci as grpc;
// construtc ociSpec from grpc::Spec, which is needed for hook
// execution. since hooks read config.json
use std::collections::HashMap;
use protocols::oci as grpc;
// construct ociSpec from grpc::Spec, which is needed for hook
// execution. since hooks read config.json
pub fn process_grpc_to_oci(p: &grpc::Process) -> oci::Process {
let console_size = if p.ConsoleSize.is_some() {
let c = p.ConsoleSize.as_ref().unwrap();