Skip to content

Commit

Permalink
task: fix-ci
Browse files Browse the repository at this point in the history
feat: WasmEdge lib 0.13.5

Signed-off-by: Zhang Tianyang <burning9699@gmail.com>
  • Loading branch information
Burning1020 committed Jul 22, 2024
1 parent b121f1f commit ebd73cb
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions vmm/task/src/io.rs
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ use tokio_vsock::{VsockListener, VsockStream};
use crate::{device::SYSTEM_DEV_PATH, vsock};

pub struct ProcessIO {
pub uri: Option<String>,
pub io: Option<Arc<dyn Io>>,
pub copy: bool,
}
Expand All @@ -65,7 +64,6 @@ pub fn create_io(
if stdio.is_null() {
let nio = NullIo::new().map_err(io_error!(e, "new Null Io"))?;
let pio = ProcessIO {
uri: None,
io: Some(Arc::new(nio)),
copy: false,
};
Expand All @@ -74,19 +72,15 @@ pub fn create_io(
let stdout = stdio.stdout.as_str();
let scheme_path = stdout.trim().split("://").collect::<Vec<&str>>();
let scheme: &str;
let uri: String;
if scheme_path.len() <= 1 {
// no scheme specified
// default schema to fifo
uri = format!("fifo://{}", stdout);
scheme = "fifo"
} else {
uri = stdout.to_string();
scheme = scheme_path[0];
}

let mut pio = ProcessIO {
uri: Some(uri),
io: None,
copy: false,
};
Expand Down

0 comments on commit ebd73cb

Please sign in to comment.