Skip to content

Commit

Permalink
修改
Browse files Browse the repository at this point in the history
  • Loading branch information
juniaoshaonian committed Mar 6, 2024
1 parent 760dd9a commit 065f859
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions memory/consumer.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,6 @@ func (c *Consumer) Run() {
ErrChan: errCh,
},
}
log.Printf("获取是否消费成功", c.name)
err := <-errCh
if err != nil {
log.Printf("上报偏移量失败:%v", err)
Expand All @@ -83,11 +82,9 @@ func (c *Consumer) Run() {
}
log.Printf("消费者 %s 结束消费数据", c.name)
case event, ok := <-c.receiveCh:
log.Println(ok, "xxxxxxxxxxxxooooooooooo", c.name)
if !ok {
return
}
log.Println(event.Type, "xxxxxxxxxxxx", c.name)
// 处理各种事件
c.Handle(event)
}
Expand Down

0 comments on commit 065f859

Please sign in to comment.