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
f716b974ca
commit
05303eb7c0
1
go.work
1
go.work
@ -8,4 +8,5 @@ use (
|
|||||||
./tools/infra
|
./tools/infra
|
||||||
./tools/ncpu
|
./tools/ncpu
|
||||||
./tools/yamlfmt
|
./tools/yamlfmt
|
||||||
|
./tools/data-conversion
|
||||||
)
|
)
|
||||||
|
|||||||
@ -97,7 +97,7 @@ func GetMessage() {
|
|||||||
defer wg.Done()
|
defer wg.Done()
|
||||||
for msg := range pc.Messages() {
|
for msg := range pc.Messages() {
|
||||||
Transfer([]*sarama.ConsumerMessage{msg})
|
Transfer([]*sarama.ConsumerMessage{msg})
|
||||||
fmt.Printf("Partition:%d, Offset:%d, Key:%s, Value:%s\n", msg.Partition, msg.Offset, string(msg.Key), string(msg.Value))
|
//fmt.Printf("Partition:%d, Offset:%d, Key:%s, Value:%s\n", msg.Partition, msg.Offset, string(msg.Key), string(msg.Value))
|
||||||
}
|
}
|
||||||
}(pc)
|
}(pc)
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user