Skip to content

Commit 667e859

Browse files
committed
cleanup pubsub validation
Signed-off-by: mikeee <[email protected]>
1 parent 0364e08 commit 667e859

File tree

1 file changed

+13
-4
lines changed

1 file changed

+13
-4
lines changed

examples/pubsub/README.md

+13-4
Original file line numberDiff line numberDiff line change
@@ -31,18 +31,27 @@ expected_stdout_lines:
3131
- '== APP - rust-subscriber == Content-Type: text/plain'
3232
- '== APP - rust-publisher == messages published'
3333
background: true
34-
sleep: 60
34+
sleep: 30
35+
timeout_seconds: 90
3536
-->
3637
3738
3839
```bash
3940
dapr run -f .
4041
```
4142
42-
2. Stop and clean up application processes
43+
<!-- END_STEP -->
44+
45+
2. Stop with `ctrl + c`
46+
47+
### Running without multi-app
4348

49+
1. Run the subscriber with dapr
4450
```bash
45-
dapr stop -f .
51+
dapr run --app-id rust-subscriber --app-protocol grpc --app-port 50051 cargo run -- --example subscriber
4652
```
4753

48-
<!-- END_STEP -->
54+
2. Run the publisher with dapr
55+
```bash
56+
dapr run --app-id rust-publisher --app-protocol grpc cargo run -- --example publisher
57+
```

0 commit comments

Comments
 (0)