File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ Both the legacy and next examples can be run using the local client:
5
5
6
6
``` bash
7
7
cd path/to/example
8
- cargo run --manifest ../../../Cargo.toml --bin cargo-shuttle -- run
8
+ cargo run --manifest-path ../../../Cargo.toml --bin cargo-shuttle -- run
9
9
```
10
10
11
11
When a more fine controlled testing is needed, use the instructions below.
Original file line number Diff line number Diff line change @@ -268,14 +268,14 @@ impl Router {
268
268
. data_mut ( )
269
269
. insert_file ( BODY_READ_FD , Box :: new ( body_read_client) , FileCaps :: all ( ) ) ;
270
270
271
- tokio:: task:: spawn ( async move {
271
+ tokio:: task:: spawn_blocking ( move || {
272
272
let mut iter = logs_stream. bytes ( ) . filter_map ( Result :: ok) ;
273
273
274
274
while let Some ( log) = Log :: from_bytes ( & mut iter) {
275
275
let mut log: runtime:: LogItem = log. into ( ) ;
276
276
log. id = deployment_id. clone ( ) ;
277
277
278
- logs_tx. send ( Ok ( log) ) . await . unwrap ( ) ;
278
+ logs_tx. blocking_send ( Ok ( log) ) . unwrap ( ) ;
279
279
}
280
280
} ) ;
281
281
You can’t perform that action at this time.
0 commit comments