Skip to content

Commit 0ebf3d3

Browse files
authored
[fix][backend]Fix mq compression bug. (#324)
Fix mq compression bug. Change-Id: I7a1e90ba1c4379a23ca8b6034cced1b3330ea5e3
1 parent 1a8aa3c commit 0ebf3d3

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

backend/infra/mq/rocketmq/factory.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,6 @@ func (f *Factory) NewProducer(config mq.ProducerConfig) (mq.IProducer, error) {
3737
if config.RetryTimes > 0 {
3838
opts = append(opts, producer.WithRetry(config.RetryTimes))
3939
}
40-
if config.Compression != mq.CompressionNone {
41-
return nil, errors.New("compression not supported")
42-
}
4340
if config.ProducerGroup != nil {
4441
opts = append(opts, producer.WithGroupName(*config.ProducerGroup))
4542
}

0 commit comments

Comments
 (0)