Skip to content

Commit

Permalink
kafkafixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Er3shk1gal committed Nov 21, 2024
1 parent da23c0b commit d21c1b9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions ApiGatewayService/Kafka/KafkaRequestService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ public async Task<bool> Produce(string topicName, Message<string, string> messag
if (IsTopicExists && IsTopicPendingMessageBusExist( responseTopic))
{
var deliveryResult = await _producer.ProduceAsync(
new TopicPartition(topicName, new Partition(0));
new TopicPartition(topicName, new Partition(0)));
if (deliveryResult.Status == PersistenceStatus.Persisted)
{
_logger.LogInformation("Message delivery status: Persisted {Result}", deliveryResult.Value);
Expand All @@ -202,7 +202,7 @@ public async Task<bool> Produce(string topicName, Message<string, string> messag
if (IsTopicCreated && IsTopicPendingMessageBusExist( responseTopic))
{
var deliveryResult = await _producer.ProduceAsync(
new TopicPartition(topicName, new Partition(0));
new TopicPartition(topicName, new Partition(0)));
if (deliveryResult.Status == PersistenceStatus.Persisted)
{
_logger.LogInformation("Message delivery status: Persisted {Result}", deliveryResult.Value);
Expand Down
4 changes: 2 additions & 2 deletions ApiGatewayService/Kafka/KafkaService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ public async Task<bool> Produce( string topicName,Message<string, string> messag
if (IsTopicExists)
{
var deliveryResult = await _producer.ProduceAsync(
new TopicPartition(topicName, new Partition(0));
new TopicPartition(topicName, new Partition(0)));
if (deliveryResult.Status == PersistenceStatus.Persisted)
{

Expand All @@ -99,7 +99,7 @@ public async Task<bool> Produce( string topicName,Message<string, string> messag
if (IsTopicCreated)
{
var deliveryResult = await _producer.ProduceAsync(
new TopicPartition(topicName, new Partition(0));
new TopicPartition(topicName, new Partition(0)));
if (deliveryResult.Status == PersistenceStatus.Persisted)
{
_logger.LogInformation("Message delivery status: Persisted {Result}", deliveryResult.Value);
Expand Down

0 comments on commit d21c1b9

Please sign in to comment.