Skip to content

Commit

Permalink
SNOW-914532: Fix variable name in ClearAllPoolsAsync (#804)
Browse files Browse the repository at this point in the history
### 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
  • Loading branch information
sfc-gh-ext-simba-lf authored Oct 27, 2023
1 parent 9237a3d commit eb0e25d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Snowflake.Data/Core/Session/SessionPool.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit eb0e25d

Please sign in to comment.