Skip to content

Commit 9fd125f

Browse files
authored
Update README.md
1 parent e10fbe4 commit 9fd125f

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

README.md

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,9 @@ $rk->addBrokers("10.0.0.1:9092,10.0.0.2:9092");
8585
```
8686

8787
#### Producing messages
88-
:warning: Make sure that your producer follows proper shutdown (see below) to not lose messages.
88+
89+
> **Warning** Make sure that your producer follows proper shutdown (see below) to not lose messages.
90+
8991
Next, we create a topic instance from the producer:
9092
``` php
9193
<?php
@@ -111,7 +113,8 @@ The message payload can be anything.
111113
This should be done prior to destroying a producer instance
112114
to make sure all queued and in-flight produce requests are completed
113115
before terminating. Use a reasonable value for `$timeout_ms`.
114-
:warning: Not calling flush can lead to message loss!
116+
117+
> **Warning** Not calling flush can lead to message loss!
115118
116119
```php
117120
$rk->flush($timeout_ms);
@@ -133,7 +136,7 @@ The RdKafka\KafkaConsumer class supports automatic partition assignment/revocati
133136

134137
### Low-level consuming (legacy)
135138

136-
> :information_source: The low-level consumer is a legacy API, please prefer using the high-level consumer
139+
> **Note** The low-level consumer is a legacy API, please prefer using the high-level consumer
137140
138141
We first need to create a low level consumer, and to add brokers (Kafka
139142
servers) to it:
@@ -184,7 +187,7 @@ while (true) {
184187

185188
### Low-level consuming from multiple topics / partitions (legacy)
186189

187-
> :information_source: The low-level consumer is a legacy API, please prefer using the high-level consumer
190+
> **Note** The low-level consumer is a legacy API, please prefer using the high-level consumer
188191
189192
Consuming from multiple topics and/or partitions can be done by telling
190193
librdkafka to forward all messages from these topics/partitions to an internal

0 commit comments

Comments
 (0)