This repository was archived by the owner on Sep 8, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +6
-6
lines changed
crates/wasi-http/tests/all/p3 Expand file tree Collapse file tree 4 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ pub async fn run_wasi_http<E: Into<ErrorCode> + 'static>(
4040 let instance = linker. instantiate_async ( & mut store, & component) . await ?;
4141 let proxy = Proxy :: new ( & mut store, & instance) ?;
4242 let res = match instance
43- . run_with ( & mut store, async |s| proxy. handle ( s, req) . await )
43+ . run_concurrent ( & mut store, async |s| proxy. handle ( s, req) . await )
4444 . await ??
4545 {
4646 Ok ( res) => res,
@@ -49,7 +49,7 @@ pub async fn run_wasi_http<E: Into<ErrorCode> + 'static>(
4949 let ( res, io) = Response :: resource_into_http ( & mut store, res) ?;
5050 let ( parts, body) = res. into_parts ( ) ;
5151 let ( res, body) = try_join ! (
52- instance. run_with ( & mut store, async |store| io
52+ instance. run_concurrent ( & mut store, async |store| io
5353 . run( store, async { Ok ( ( ) ) } )
5454 . await ) ,
5555 async { Ok ( body. collect( ) . await ) } ,
Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ async fn run(path: &str, server: &Server) -> anyhow::Result<()> {
3535 let instance = linker. instantiate_async ( & mut store, & component) . await ?;
3636 let command = Command :: new ( & mut store, & instance) ?;
3737 instance
38- . run_with ( store, async |store| {
38+ . run_concurrent ( store, async |store| {
3939 command. wasi_cli_run ( ) . call_run ( store) . await
4040 } )
4141 . await
Original file line number Diff line number Diff line change @@ -506,7 +506,7 @@ impl RunCommand {
506506 wasmtime_wasi:: p3:: bindings:: Command :: new ( & mut * store, & instance)
507507 {
508508 instance
509- . run_with ( & mut * store, async |store| {
509+ . run_concurrent ( & mut * store, async |store| {
510510 command. wasi_cli_run ( ) . call_run ( store) . await
511511 } )
512512 . await ?
Original file line number Diff line number Diff line change @@ -974,7 +974,7 @@ async fn handle_request(
974974 let ( req, body) = req. into_parts ( ) ;
975975 let body = body. map_err ( p3:: http:: types:: ErrorCode :: from_hyper_request_error) ;
976976 let res = instance
977- . run_with ( & mut store, async |store| {
977+ . run_concurrent ( & mut store, async |store| {
978978 proxy
979979 . handle ( store, http:: Request :: from_parts ( req, body) )
980980 . await
@@ -983,7 +983,7 @@ async fn handle_request(
983983 let ( res, io) = wasmtime_wasi_http:: p3:: Response :: resource_into_http ( & mut store, res) ?;
984984 tokio:: task:: spawn ( async move {
985985 instance
986- . run_with ( & mut store, async |store| {
986+ . run_concurrent ( & mut store, async |store| {
987987 // TODO: Report transmit errors
988988 let guest_io_result = async { Ok ( ( ) ) } ;
989989 io. run ( store, guest_io_result) . await
You can’t perform that action at this time.
0 commit comments