Closed akbashev closed 8 months ago
Event though it's working now properly, I've implemented it naively by string check "(protocol)(host)(port)" and not quite sure about that. 🤔 Maybe there is a better comparison logic? What does mean to check by lowest name of protocol? 🤔
A system will never really have different protocols, so this is okey I think
@swift-server-bot test this please
Motivation:
Currently there is a bug in lowest address ordering where it will sort nodes and choose lowest not by address, but by alphabetical order (or guess unicode order) of systemName node's variables.
Modifications:
Changed implementation of Comparable for ClusterEndpoint and tweaked tests a bit.
Result: