Skip to content

Commit 02d0a60

Browse files
committed
Fix missing peerAddress in hash code, removed unused namespace.
1 parent 5624f75 commit 02d0a60

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/libraries/System.Net.Http/src/System/Net/Http/SocketsHttpHandler/Metrics/SocketsHttpHandlerMetrics.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
using System.Collections.Generic;
66
using System.Diagnostics;
77
using System.Diagnostics.Metrics;
8-
using System.Threading;
98

109
namespace System.Net.Http.Metrics
1110
{
@@ -30,7 +29,7 @@ public OpenConnectionsTagKey(string protocolVersion, string scheme, string host,
3029
Port = port;
3130
IsIdle = isIdle;
3231
PeerAddress = peerAddress;
33-
_hashCode = HashCode.Combine(protocolVersion, scheme, host, port, isIdle);
32+
_hashCode = HashCode.Combine(protocolVersion, scheme, host, port, isIdle, peerAddress);
3433
}
3534

3635
public bool Equals(OpenConnectionsTagKey other) =>

0 commit comments

Comments
 (0)