优化ProduceData数据结构

This commit is contained in:
白茶清欢 2023-08-16 18:43:58 +08:00
parent 577ebc4c84
commit c449ee9583
1 changed files with 2 additions and 2 deletions

View File

@ -13,8 +13,8 @@ package kafka
//
// Date : 4:13 下午 2021/9/21
type ProducerData struct {
Data map[interface{}]interface{} // 发送的数据
Key string // 分区key
Data interface{} // 发送的数据
Key string // 分区key
}
// ProducerResult 数据发送后的结果