Skip to content

Commit ff053f4

Browse files
committed
Update consumer.md
1 parent 20e5761 commit ff053f4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

doc/consumer.en.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ Class `longlang\phpkafka\Consumer\ConsumerConfig`
1717
| maxWriteAttempts | Maximum attempts to write | `3` |
1818
| client | Kafka client used. `null` by default means auto recognition. | `null` |
1919
| socket | Kafka Socket used. `null` by default means auto recognition. | `null` |
20-
| broker | broker format `'127.0.0.1:9092'` | `null` |
20+
| brokers | Alias is broker. Format: `'127.0.0.1:9092,127.0.0.1:9093'` or `['127.0.0.1:9092','127.0.0.1:9093']` | `null` |
2121
| bootstrapServers | Alias bootstrapServer, used to boot the server. If configured, the server will be connected and brokers updated. Format `'127.0.0.1:9092,127.0.0.1:9093'` or `['127.0.0.1:9092','127.0.0.1:9093']`. | `null` |
2222
| updateBrokers | Auto update brokers. | `true` |
2323
| interval | If the message is not received, try again internals. `0` is default and means no intervals(unit: second, decimal). | `0` |

doc/consumer.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
| maxWriteAttempts | 最大写入尝试次数 | `3` |
1818
| client | 使用哪个 Kafka 客户端类,默认为`null`时根据场景自动识别 | `null` |
1919
| socket | 使用哪个 Kafka Socket 类,默认为`null`时根据场景自动识别 | `null` |
20-
| broker | broker,格式:`'127.0.0.1:9092'` | `null` |
20+
| brokers | 别名 broker,格式:`'127.0.0.1:9092,127.0.0.1:9093'``['127.0.0.1:9092','127.0.0.1:9093']` | `null` |
2121
| bootstrapServers | 别名bootstrapServer,引导服务器,如果配置了该值,会自动连接该服务器,并自动更新 brokers。格式:`'127.0.0.1:9092,127.0.0.1:9093'``['127.0.0.1:9092','127.0.0.1:9093']` | `null` |
2222
| updateBrokers | 是否自动更新 brokers | `true` |
2323
| interval | 未获取消息到消息时,延迟多少秒再次尝试,默认为`0`则不延迟(单位:秒,支持小数) | `0` |

0 commit comments

Comments
 (0)