Skip to content

Commit 92528d3

Browse files
committed
Fix compilation
1 parent bc8b094 commit 92528d3

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/Microsoft.Data.SqlClient/src/Microsoft/Data/SqlClient/ConnectionPool/ChannelDbConnectionPool.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ internal ChannelDbConnectionPool(
6969
ProviderInfo = connectionPoolProviderInfo;
7070
Identity = identity;
7171
AuthenticationContexts = new();
72+
MaxPoolSize = Convert.ToUInt32(PoolGroupOptions.MaxPoolSize);
7273

7374
_connectionSlots = new(MaxPoolSize);
7475

@@ -124,7 +125,7 @@ public ConcurrentDictionary<
124125
/// <inheritdoc />
125126
public bool UseLoadBalancing => PoolGroupOptions.UseLoadBalancing;
126127

127-
private int MaxPoolSize => PoolGroupOptions.MaxPoolSize;
128+
private uint MaxPoolSize { get; }
128129
#endregion
129130

130131
#region Methods
@@ -353,7 +354,7 @@ public bool TryGetConnection(
353354
// attempts on the idle connection channel.
354355
if (newConnection is not null)
355356
{
356-
RemoveConnection(newConnection, trackedInSlots: false);
357+
RemoveConnection(newConnection);
357358
}
358359

359360
throw;

0 commit comments

Comments
 (0)