Skip to content

Commit

Permalink
fix: properly handle produce operation failure
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander Galibey committed Jul 20, 2023
1 parent 146e334 commit 26dab10
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions crates/fluvio/src/producer/partition_producer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -280,11 +280,6 @@ impl PartitionProducer {
let mut futures = Vec::with_capacity(partition_count);
for topic in produce_response.responses.into_iter() {
for partition in topic.partitions {
if partition.error_code.is_error() {
return Err(FluvioError::from(ProducerError::from(
partition.error_code,
)));
}
futures.push(ProducePartitionResponseFuture::ready(
partition.base_offset,
partition.error_code,
Expand Down

0 comments on commit 26dab10

Please sign in to comment.