Skip to content

Commit fac949d

Browse files
committed
wip
1 parent cc79079 commit fac949d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Config/Config.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,8 +141,6 @@ public function getConsumerOptions(): array
141141
'enable.auto.commit' => config('kafka.auto_commit', true) === true ? 'true' : 'false',
142142
'group.id' => $this->groupId,
143143
'bootstrap.servers' => $this->broker,
144-
'linger.ms' => 0,
145-
'queue.buffering.max.ms' => 0,
146144
];
147145

148146
if (isset($this->autoCommit)) {
@@ -160,6 +158,8 @@ public function getProducerOptions(): array
160158
'compression.codec' => config('kafka.compression', 'snappy'),
161159
'bootstrap.servers' => $this->broker,
162160
'metadata.broker.list' => $this->broker,
161+
'linger.ms' => 0,
162+
'queue.buffering.max.ms' => 0
163163
];
164164

165165
return collect(array_merge($config, $this->customOptions, $this->getSaslOptions()))

0 commit comments

Comments
 (0)