mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-12-11 23:47:32 +08:00
kafka msg data conversion
This commit is contained in:
parent
df9613c49b
commit
b2b9b8f95f
@ -74,7 +74,7 @@ func GetMessage() {
|
||||
}
|
||||
fmt.Println(partitionList)
|
||||
for partition := range partitionList {
|
||||
pc, err := consumer.ConsumePartition(topic, int32(partition), sarama.OffsetNewest)
|
||||
pc, err := consumer.ConsumePartition(topic, int32(partition), sarama.OffsetOldest)
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user