瀏覽代碼

Tweak kafka read header by index when the Key already exists.

master
Savorboard 3 年之前
父節點
當前提交
f9e46337e7
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. +2
    -2
      src/DotNetCore.CAP.Kafka/KafkaConsumerClient.cs

+ 2
- 2
src/DotNetCore.CAP.Kafka/KafkaConsumerClient.cs 查看文件

@@ -106,7 +106,7 @@ namespace DotNetCore.CAP.Kafka
var customHeaders = _kafkaOptions.CustomHeaders(consumerResult);
foreach (var customHeader in customHeaders)
{
headers.Add(customHeader.Key, customHeader.Value);
headers[customHeader.Key] = customHeader.Value;
}
}

@@ -177,6 +177,6 @@ namespace DotNetCore.CAP.Kafka
Reason = $"An error occurred during connect kafka --> {e.Reason}"
};
OnLog?.Invoke(null, logArgs);
}
}
}
}

Loading…
取消
儲存