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

use goroutine to destroy invoker

parent 4fcba8ed
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