Skip to content

Commit

Permalink
Example code was not compiling properly (apache#15215)
Browse files Browse the repository at this point in the history
This small changes make the examples compile properly in Debian after installing the libraries from the .deb packages.
  • Loading branch information
AlvaroStream authored Apr 20, 2022
1 parent caf7648 commit fd0532c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions site2/docs/client-libraries-cpp.md
Original file line number Diff line number Diff line change
Expand Up @@ -323,6 +323,8 @@ using namespace pulsar;

int main() {
Client client("pulsar://localhost:6650");

Producer producer;

Result result = client.createProducer("persistent://public/default/my-topic", producer);
if (result != ResultOk) {
Expand Down Expand Up @@ -364,6 +366,7 @@ Without this configuration, the result code `ResultProducerQueueIsFull` is passe
```c++
#include <pulsar/Client.h>
#include <thread>
#include <atomic>

using namespace pulsar;

Expand Down

0 comments on commit fd0532c

Please sign in to comment.