mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-12-13 16:47:36 +08:00
kafka msg data conversion
This commit is contained in:
parent
df9613c49b
commit
b2b9b8f95f
@ -74,7 +74,7 @@ func GetMessage() {
|
|||||||
}
|
}
|
||||||
fmt.Println(partitionList)
|
fmt.Println(partitionList)
|
||||||
for partition := range 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 {
|
if err != nil {
|
||||||
panic(err)
|
panic(err)
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user