mirror of
https://github.com/gogrlx/nats-server.git
synced 2026-04-02 03:38:42 -07:00
Clear timer in case currently set
Signed-off-by: Ivan Kozlovic <ivan@synadia.com>
This commit is contained in:
@@ -713,6 +713,7 @@ func (o *consumer) setLeader(isLeader bool) {
|
||||
// There is no local interest, but there is GW interest, we
|
||||
// will watch for interest disappearing.
|
||||
// TODO: may need to revisit...
|
||||
stopAndClearTimer(&o.gwdtmr)
|
||||
o.gwdtmr = time.AfterFunc(o.dthresh, func() { o.watchGWinterest() })
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user