File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
src/Microsoft.Azure.WebJobs.Extensions.Kafka/Output Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -121,10 +121,14 @@ public ProducerConfig GetProducerConfig(KafkaProducerEntity entity)
121
121
SslKeyLocation = resolvedSslKeyLocation ,
122
122
SslKeyPassword = entity . Attribute . SslKeyPassword ,
123
123
SslCertificateLocation = resolvedSslCertificationLocation ,
124
- SslCaLocation = resolvedSslCaLocation ,
125
- CompressionLevel = entity . Attribute . CompressionLevel
124
+ SslCaLocation = resolvedSslCaLocation
126
125
} ;
127
126
127
+ if ( entity . Attribute . CompressionLevel != - 1 )
128
+ {
129
+ conf . CompressionLevel = entity . Attribute . CompressionLevel ;
130
+ }
131
+
128
132
if ( entity . Attribute . CompressionType != MessageCompressionType . NotSet )
129
133
{
130
134
conf . CompressionType = ( CompressionType ) entity . Attribute . CompressionType ;
You can’t perform that action at this time.
0 commit comments