Commit 6db68f9
committed
server: Cleanup external address discovery.
This current code that handles the external server address discovery is
rather difficult to follow because it is poorly named and interspersed
with other code that is not related.
This refactors the code to make it better separated and easier to
follow. It also switches the main data structure that limits the number
of addresses to use an LRU instead.
While refactoring this, I noticed there is room for improvement in terms
of the logic as well. However, in order to keep the changes easier to
review for correctness, this does not contain any notable overall logic
changes and limits the changes to refactors and cleanup.1 parent 6a531a1 commit 6db68f9
1 file changed
Lines changed: 259 additions & 311 deletions
0 commit comments