Skip to content
Snippets Groups Projects
Commit 2ab8035f authored by cvictory's avatar cvictory
Browse files

fix bug: the ticket just need to create once

parent 22107248
No related branches found
No related tags found
No related merge requests found
......@@ -125,8 +125,8 @@ func (c *RouterChain) SetInvokers(invokers []protocol.Invoker) {
// loop listens on events to update the address cache when it's necessary, either when it receives notification
// from address update, or when timeInterval exceeds.
func (c *RouterChain) loop() {
ticker := time.NewTicker(timeInterval)
for {
ticker := time.NewTicker(timeInterval)
select {
case <-ticker.C:
c.buildCache()
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment