feat: execute full-repo remaining parity closure plan
This commit is contained in:
@@ -25,6 +25,14 @@ public sealed class RouteManager : IAsyncDisposable
|
||||
|
||||
public string ListenEndpoint => $"{_options.Host}:{_options.Port}";
|
||||
|
||||
public RouteTopologySnapshot BuildTopologySnapshot()
|
||||
{
|
||||
return new RouteTopologySnapshot(
|
||||
_serverId,
|
||||
_routes.Count,
|
||||
_connectedServerIds.Keys.OrderBy(static k => k, StringComparer.Ordinal).ToArray());
|
||||
}
|
||||
|
||||
public RouteManager(
|
||||
ClusterOptions options,
|
||||
ServerStats stats,
|
||||
@@ -254,3 +262,8 @@ public sealed class RouteManager : IAsyncDisposable
|
||||
|
||||
public int RouteCount => _routes.Count;
|
||||
}
|
||||
|
||||
public sealed record RouteTopologySnapshot(
|
||||
string ServerId,
|
||||
int RouteCount,
|
||||
IReadOnlyList<string> ConnectedServerIds);
|
||||
|
||||
Reference in New Issue
Block a user