From eb0e25d2aeccfbe66e37b8d1c703c48f8612767f Mon Sep 17 00:00:00 2001 From: sfc-gh-ext-simba-lf <115584722+sfc-gh-ext-simba-lf@users.noreply.github.com> Date: Fri, 27 Oct 2023 00:10:52 -0700 Subject: [PATCH] SNOW-914532: Fix variable name in ClearAllPoolsAsync (#804) ### Description The PR renames the variable to the correct name for ClearAllPoolsAsync ### Checklist - [x] Code compiles correctly - [x] Code is formatted according to [Coding Conventions](../CodingConventions.md) - [ ] Created tests which fail without the change (if possible) - [ ] All tests passing (`dotnet test`) - [ ] Extended the README / documentation, if necessary - [x] Provide JIRA issue id (if possible) or GitHub issue id in PR name --- Snowflake.Data/Core/Session/SessionPool.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Snowflake.Data/Core/Session/SessionPool.cs b/Snowflake.Data/Core/Session/SessionPool.cs index 1df54811c..a7eae7726 100644 --- a/Snowflake.Data/Core/Session/SessionPool.cs +++ b/Snowflake.Data/Core/Session/SessionPool.cs @@ -196,11 +196,11 @@ internal void ClearAllPools() internal async void ClearAllPoolsAsync() { s_logger.Debug("SessionPool::ClearAllPoolsAsync"); - foreach (SFSession session in _sessionPool) + foreach (SFSession session in _sessions) { await session.CloseAsync(CancellationToken.None).ConfigureAwait(false); } - _sessionPool.Clear(); + _sessions.Clear(); } public void SetMaxPoolSize(int size)