Skip to content

Commit

Permalink
Mark class internal and use static instance
Browse files Browse the repository at this point in the history
  • Loading branch information
sfc-gh-ext-simba-lf committed Mar 26, 2024
1 parent 1877755 commit 91f9ac8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Snowflake.Data/Client/SnowflakeDbCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public class SnowflakeDbCommand : DbCommand

private SFLogger logger = SFLoggerFactory.GetLogger<SnowflakeDbCommand>();

private QueryResultsAwaiter _queryResultsAwaiter = new QueryResultsAwaiter();
private readonly QueryResultsAwaiter _queryResultsAwaiter = QueryResultsAwaiter.Instance;

public SnowflakeDbCommand()
{
Expand Down
4 changes: 3 additions & 1 deletion Snowflake.Data/Core/QueryResultsAwaiter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

namespace Snowflake.Data.Core
{
public class QueryResultsRetryConfig
internal class QueryResultsRetryConfig
{
private const int DefaultAsyncNoDataMaxRetry = 24;

Expand Down Expand Up @@ -42,6 +42,8 @@ internal class QueryResultsAwaiter

private QueryResultsRetryConfig _queryResultsRetryConfig;

internal static readonly QueryResultsAwaiter Instance = new QueryResultsAwaiter();

internal QueryResultsAwaiter()
{
_queryResultsRetryConfig = new QueryResultsRetryConfig();
Expand Down

0 comments on commit 91f9ac8

Please sign in to comment.