正在显示
2 个修改的文件
包含
2 行增加
和
2 行删除
| @@ -14,7 +14,7 @@ require ( | @@ -14,7 +14,7 @@ require ( | ||
| 14 | //github.com/opentracing/opentracing-go v1.1.1-0.20190913142402-a7454ce5950e | 14 | //github.com/opentracing/opentracing-go v1.1.1-0.20190913142402-a7454ce5950e |
| 15 | //github.com/openzipkin-contrib/zipkin-go-opentracing v0.4.5 | 15 | //github.com/openzipkin-contrib/zipkin-go-opentracing v0.4.5 |
| 16 | //github.com/openzipkin/zipkin-go v0.2.5 | 16 | //github.com/openzipkin/zipkin-go v0.2.5 |
| 17 | - github.com/tiptok/gocomm v1.0.8 | 17 | + github.com/tiptok/gocomm v1.0.9 |
| 18 | ) | 18 | ) |
| 19 | 19 | ||
| 20 | //replace github.com/tiptok/gocomm v1.0.8 => F:\go\src\learn_project\gocomm | 20 | //replace github.com/tiptok/gocomm v1.0.8 => F:\go\src\learn_project\gocomm |
| @@ -17,7 +17,7 @@ const ( | @@ -17,7 +17,7 @@ const ( | ||
| 17 | ) | 17 | ) |
| 18 | 18 | ||
| 19 | func RunConsumer() { | 19 | func RunConsumer() { |
| 20 | - saramaConsumer := kafkax.NewSaramaConsumer(KAFKA_HOSTS, GroupId) // models.WithVersion("0.10.2.1") | 20 | + saramaConsumer := kafkax.NewSaramaConsumer(KAFKA_HOSTS, GroupId) //models.WithHandlerOriginalMessageFlag(true) models.WithVersion("0.10.2.1") |
| 21 | saramaConsumer.WithTopicHandler(TOPIC_BUSSINESS_ADMIN, UserLoginHandler) | 21 | saramaConsumer.WithTopicHandler(TOPIC_BUSSINESS_ADMIN, UserLoginHandler) |
| 22 | saramaConsumer.WithMessageReceiver(local.NewPgMessageReceiverRepository(pg.DB, nil)) // 持久化 | 22 | saramaConsumer.WithMessageReceiver(local.NewPgMessageReceiverRepository(pg.DB, nil)) // 持久化 |
| 23 | 23 |
-
请 注册 或 登录 后发表评论