|
@@ -97,7 +97,17 @@ namespace TelpoPush.Position.Worker.Service.Mq |
|
|
continue; |
|
|
continue; |
|
|
} |
|
|
} |
|
|
if (!string.IsNullOrEmpty(messageResult)) |
|
|
if (!string.IsNullOrEmpty(messageResult)) |
|
|
|
|
|
{ |
|
|
messageFunc(topic, messageResult, headers); |
|
|
messageFunc(topic, messageResult, headers); |
|
|
|
|
|
try |
|
|
|
|
|
{ |
|
|
|
|
|
consumer.Commit(consumeResult); |
|
|
|
|
|
} |
|
|
|
|
|
catch (KafkaException e) |
|
|
|
|
|
{ |
|
|
|
|
|
logger.LogError($" - {e.Message}."); |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
#region 注释 |
|
|
#region 注释 |
|
|
//string messageResult = null; |
|
|
//string messageResult = null; |
|
|
//Headers headers = null; |
|
|
//Headers headers = null; |
|
|