forked from streamnative/pulsar-rs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Examples not producing output on consumer side (streamnative#261)
- Loading branch information
1 parent
c5c05cc
commit bcfa020
Showing
2 changed files
with
26 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# Examples | ||
|
||
In order to run these examples, you will need a running Apache-Pulsar backend. You can start one with: | ||
|
||
```bash | ||
docker run -it \ | ||
-p 6650:6650 \ | ||
-p 8080:8080 \ | ||
--mount source=pulsardata,target=/pulsar/data \ | ||
--mount source=pulsarconf,target=/pulsar/conf \ | ||
apachepulsar/pulsar:2.10.0 \ | ||
bin/pulsar standalone | ||
``` | ||
|
||
## Producer | ||
|
||
```bash | ||
RUST_LOG=info cargo run --release --example producer | ||
``` | ||
|
||
## Consumer | ||
|
||
```bash | ||
RUST_LOG=info cargo run --release --example consumer | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters