Skip to content

Commit 0913c81

Browse files
author
Phil Cummins
committed
removes comments
1 parent 9f67122 commit 0913c81

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

src/lib.rs

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -410,7 +410,7 @@ pub async fn componentize(
410410
// application's first and only chance to load any standard or third-party modules since we do not yet include
411411
// a virtual filesystem in the component to make those modules available at runtime.
412412

413-
let stdout: MemoryOutputPipe = MemoryOutputPipe::new(10000);
413+
let stdout = MemoryOutputPipe::new(10000);
414414
let stderr = MemoryOutputPipe::new(10000);
415415

416416
let mut wasi = WasiCtxBuilder::new();
@@ -550,9 +550,6 @@ pub async fn componentize(
550550

551551
let mut linker = Linker::new(&engine);
552552

553-
//whenever the guest adds to fulfil x or y,
554-
//add to linker is giving access to wasi so it can access the host file system
555-
556553
let added_to_linker = if let Some(add_to_linker) = add_to_linker {
557554
add_to_linker(&mut linker)?;
558555
true
@@ -562,9 +559,6 @@ pub async fn componentize(
562559

563560
let mut store = Store::new(&engine, Ctx { wasi, table });
564561

565-
//can stub out wasi, if does try to access file system then trap it
566-
//there are no env variables etc
567-
568562
let app_name = app_name.to_owned();
569563
let component = component_init::initialize_staged(
570564
&component,

0 commit comments

Comments
 (0)