Jelajahi Sumber

Avoid Ticker leak in case of slow consumer

Thomas Sanchez 7 tahun lalu
induk
melakukan
cd0485eacc
1 mengubah file dengan 1 tambahan dan 0 penghapusan
  1. 1 0
      consumer.go

+ 1 - 0
consumer.go

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