Skip to content

Commit 6c1fda8

Browse files
committed
chore: fix failure
1 parent 5479c64 commit 6c1fda8

File tree

1 file changed

+7
-14
lines changed

1 file changed

+7
-14
lines changed

kq/pusher.go

+7-14
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,13 @@ func WithAllowAutoTopicCreation() PushOption {
150150
}
151151
}
152152

153+
// WithBalancer customizes the Pusher with the given balancer.
154+
func WithBalancer(balancer kafka.Balancer) PushOption {
155+
return func(options *pushOptions) {
156+
options.balancer = balancer
157+
}
158+
}
159+
153160
// WithChunkSize customizes the Pusher with the given chunk size.
154161
func WithChunkSize(chunkSize int) PushOption {
155162
return func(options *pushOptions) {
@@ -164,20 +171,6 @@ func WithFlushInterval(interval time.Duration) PushOption {
164171
}
165172
}
166173

167-
// WithAllowAutoTopicCreation allows the Pusher to create the given topic if it does not exist.
168-
func WithAllowAutoTopicCreation() PushOption {
169-
return func(options *pushOptions) {
170-
options.allowAutoTopicCreation = true
171-
}
172-
}
173-
174-
// WithBalancer customizes the Pusher with the given balancer.
175-
func WithBalancer(balancer kafka.Balancer) PushOption {
176-
return func(options *pushOptions) {
177-
options.balancer = balancer
178-
}
179-
}
180-
181174
// WithSyncPush enables the Pusher to push messages synchronously.
182175
func WithSyncPush() PushOption {
183176
return func(options *pushOptions) {

0 commit comments

Comments
 (0)