Skip to content
Snippets Groups Projects
Unverified Commit c4a854b4 authored by Xin.Zh's avatar Xin.Zh Committed by GitHub
Browse files

Merge pull request #849 from cvictory/local_fix_chain_loop_ticket

bug: the ticket just need to create once
parents 63ce222d 2ab8035f
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