Skip to content

Commit 7e39254

Browse files
authored
Merge pull request #76 from MarkJoyMa/fix/kq_sync_producer
2 parents 77e9086 + 2119fa0 commit 7e39254

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

kq/pusher.go

+1
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ func NewPusher(addrs []string, topic string, opts ...PushOption) *Pusher {
6767

6868
// if syncPush is true, return the pusher directly
6969
if options.syncPush {
70+
producer.BatchSize = 1
7071
return pusher
7172
}
7273

0 commit comments

Comments
 (0)