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
f716b974ca
commit
05303eb7c0
1
go.work
1
go.work
@ -8,4 +8,5 @@ use (
|
||||
./tools/infra
|
||||
./tools/ncpu
|
||||
./tools/yamlfmt
|
||||
./tools/data-conversion
|
||||
)
|
||||
|
||||
@ -97,7 +97,7 @@ func GetMessage() {
|
||||
defer wg.Done()
|
||||
for msg := range pc.Messages() {
|
||||
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)
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user