diff --git a/src/Tools/dotnet-monitor/EndpointInfo/ServerEndpointTrackerv2.cs b/src/Tools/dotnet-monitor/EndpointInfo/ServerEndpointTrackerv2.cs index c167dd5b2ac..b19c496e0f0 100644 --- a/src/Tools/dotnet-monitor/EndpointInfo/ServerEndpointTrackerv2.cs +++ b/src/Tools/dotnet-monitor/EndpointInfo/ServerEndpointTrackerv2.cs @@ -85,7 +85,7 @@ internal async Task PruneEndpointsAsync(CancellationToken token) // for removal after releasing the active endpoints semaphore. int endpointIndex = 0; - void removeEndpoint(IEndpointInfo endpoint, int endpointIndex, ServerEndpointState state) + void removeEndpoint(IEndpointInfo endpoint, ServerEndpointState state) { _activeEndpoints.RemoveAt(endpointIndex); EndpointRemoved?.Invoke(this, new(endpoint, state)); @@ -108,7 +108,7 @@ void removeEndpoint(IEndpointInfo endpoint, int endpointIndex, ServerEndpointSta case ServerEndpointState.Unresponsive: if (now - activeEndpoint.LastContact > UnresponsiveGracePeriod) { - removeEndpoint(activeEndpoint.Endpoint, endpointIndex, state); + removeEndpoint(activeEndpoint.Endpoint, state); } else { @@ -117,7 +117,7 @@ void removeEndpoint(IEndpointInfo endpoint, int endpointIndex, ServerEndpointSta break; case ServerEndpointState.Error: - removeEndpoint(activeEndpoint.Endpoint, endpointIndex, state); + removeEndpoint(activeEndpoint.Endpoint, state); break; } }