Skip to content

Commit

Permalink
nit
Browse files Browse the repository at this point in the history
  • Loading branch information
ruokun-niu committed Dec 5, 2024
1 parent 751f8c1 commit af27875
Showing 1 changed file with 0 additions and 31 deletions.
31 changes: 0 additions & 31 deletions reactions/debezium/debezium-reaction/Services/ChangeHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -81,35 +81,4 @@ public async Task HandleChange(ChangeEvent evt, object? queryConfig)

_producer.Flush();
}


// private async Task ProcessResults(EventMetadata metadata, Dictionary<string, object>[] results, string op)
// {
// var noIndent = new JsonSerializerOptions { WriteIndented = false };
// foreach (var res in results)
// {
// string eventString = _formatter.FormatEvent(metadata, res, op);

// _logger.LogInformation($"dataChangeEvent: {eventString}");
// try
// {
// var deliveryReport = await _producer.ProduceAsync(_topic, new Message<Null, string> { Value = eventString }, CancellationToken.None);

// if (deliveryReport.Status != PersistenceStatus.Persisted)
// {
// _logger.LogInformation($"Delivery failed: {deliveryReport.Message.Value}");
// }
// else
// {
// _logger.LogInformation($"Message delivered to {deliveryReport.TopicPartitionOffset}");
// }

// }
// catch (ProduceException<Null, string> ex)
// {
// _logger.LogInformation($"ProduceException: {ex.Error.Reason}");
// }
// }
// }

}

0 comments on commit af27875

Please sign in to comment.