Skip to content

Commit 11e8f75

Browse files
Fix compression param
Signed-off-by: Artem Savchenko <[email protected]>
1 parent 3ece770 commit 11e8f75

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/kafka/src/index.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -199,8 +199,7 @@ class PlatformQueueProducerImpl implements PlatformQueueProducer<any> {
199199
) {
200200
this.txProducer = kafka.producer({
201201
allowAutoTopicCreation: true,
202-
createPartitioner: Partitioners.DefaultPartitioner,
203-
compression: CompressionTypes.GZIP
202+
createPartitioner: Partitioners.DefaultPartitioner
204203
})
205204
this.connected = this.ctx.with('connect-broker', {}, () => this.txProducer.connect())
206205
}
@@ -224,7 +223,8 @@ class PlatformQueueProducerImpl implements PlatformQueueProducer<any> {
224223
workspace,
225224
meta: JSON.stringify(ctx.extractMeta())
226225
}
227-
}))
226+
})),
227+
compression: CompressionTypes.GZIP
228228
})
229229
)
230230
}

0 commit comments

Comments
 (0)