Skip to content
Snippets Groups Projects
Commit 2757a1ab authored by cvictory's avatar cvictory
Browse files

use goroutine to destroy invoker

parent d5ffb620
No related branches found
No related tags found
No related merge requests found
......@@ -182,7 +182,7 @@ func (dir *RegistryDirectory) refreshAllInvokers(events []*registry.ServiceEvent
dir.setNewInvokers()
// destroy unused invokers
for _, invoker := range oldInvokers {
invoker.Destroy()
go invoker.Destroy()
}
}
......
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