浏览代码

consumer: don't stop the ticker if we time out

Now that we reuse a single ticker the whole time, this would probably lead to
the consumer just kind of hanging and never resuming.

Thanks to https://github.com/Shopify/sarama/pull/1028#issuecomment-368320469 for
catching this.
Evan Huus 7 年之前
父节点
当前提交
eae91468c2
共有 1 个文件被更改,包括 0 次插入1 次删除
  1. 0 1
      consumer.go

+ 0 - 1
consumer.go

@@ -461,7 +461,6 @@ feederLoop:
 						child.messages <- msg
 					}
 					child.broker.input <- child
-					expiryTicker.Stop()
 					continue feederLoop
 				} else {
 					// current message has not been sent, return to select