Skip to content

Commit

Permalink
Fixed MassTransit#4345 - discard skipped/faulted messages for Kafka/E…
Browse files Browse the repository at this point in the history
…vent Hub
  • Loading branch information
phatboyg committed May 22, 2023
1 parent 576a292 commit e078cd5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,9 @@ public EventHubReceiveEndpointConfigurator(IEventHubHostConfiguration hostConfig
_blobClient = new Lazy<BlobContainerClient>(CreateBlobClient);

PublishFaults = false;

this.DiscardFaultedMessages();
this.DiscardSkippedMessages();
}

public override Uri HostAddress => _endpointConfiguration.HostAddress;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,9 @@ public KafkaTopicReceiveEndpointConfiguration(IKafkaHostConfiguration hostConfig
_consumerConfigurator = new PipeConfigurator<ConsumerContext>();

PublishFaults = false;

this.DiscardFaultedMessages();
this.DiscardSkippedMessages();
}

public override Uri HostAddress => _endpointConfiguration.HostAddress;
Expand Down

0 comments on commit e078cd5

Please sign in to comment.