diff --git a/src/kafka-net/Protocol/ProduceRequest.cs b/src/kafka-net/Protocol/ProduceRequest.cs index e8c41bc1..a18fb497 100644 --- a/src/kafka-net/Protocol/ProduceRequest.cs +++ b/src/kafka-net/Protocol/ProduceRequest.cs @@ -10,7 +10,7 @@ public class ProduceRequest : BaseRequest, IKafkaRequest /// /// Provide a hint to the broker call not to expect a response for requests without Acks. /// - public override bool ExpectResponse { get { return Acks > 0; } } + public override bool ExpectResponse { get { return Acks != 0; } } /// /// Indicates the type of kafka encoding this request is. /// @@ -171,4 +171,4 @@ public override int GetHashCode() } } } -} \ No newline at end of file +}