mirror of
https://github.com/openziti/ziti.git
synced 2026-09-10 08:45:41 +00:00
8d11af3d97
* When routers change (connect/disconnect), we re-check the mesh. We are passing in the routers to the channel and they can build up, which is unnecessary. We only need to signal once for all the routers that change since the last time we checked, that the mesh needs to be checked. * We pass link changes through the run method, which is unnecessary since we pass it to a new goroutine. This inefficiency should be fixed. * We're evaluating all faulted links for rerouting, even if they were still pending. Only reroute connected links. * We're using time.After in each for loop, which can accumulate timers. Use a single Ticker instead.