Skip to content

Commit 4fb561d

Browse files
committed
Update documentation
1 parent 0cff038 commit 4fb561d

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -228,6 +228,10 @@ err = producer.BatchSend(messages)
228228
- accepts an array messages as parameter
229229
- is synchronous
230230

231+
Close the producer:
232+
`producer.Close()` the producer is removed from the server. TCP connection is closed if there aren't </b>
233+
other producers
234+
231235
### `Send` vs `BatchSend`
232236

233237
The `BatchSend` is the primitive to send the messages, `Send` introduces a smart layer to publish messages and internally uses `BatchSend`.
@@ -349,6 +353,9 @@ Disabling the CRC control can increase the performances.
349353

350354
See also "Offset Start" example in the [examples](./examples/) directory
351355

356+
Close the consumer:
357+
`consumer.Close()` the consumer is removed from the server. TCP connection is closed if there aren't </b>
358+
other consumers
352359

353360
### Manual Track Offset
354361
The server can store the offset given a consumer, in this way:

0 commit comments

Comments
 (0)