File tree 1 file changed +7
-14
lines changed
1 file changed +7
-14
lines changed Original file line number Diff line number Diff line change @@ -150,6 +150,13 @@ func WithAllowAutoTopicCreation() PushOption {
150
150
}
151
151
}
152
152
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
+
153
160
// WithChunkSize customizes the Pusher with the given chunk size.
154
161
func WithChunkSize (chunkSize int ) PushOption {
155
162
return func (options * pushOptions ) {
@@ -164,20 +171,6 @@ func WithFlushInterval(interval time.Duration) PushOption {
164
171
}
165
172
}
166
173
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
-
181
174
// WithSyncPush enables the Pusher to push messages synchronously.
182
175
func WithSyncPush () PushOption {
183
176
return func (options * pushOptions ) {
You can’t perform that action at this time.
0 commit comments