Skip to content

Commit

Permalink
typo
Browse files Browse the repository at this point in the history
  • Loading branch information
karpikpl committed Jun 11, 2024
1 parent 24eae81 commit f87da6c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Scaler/Services/CosmosDbFactory.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public CosmosClient GetCosmosClient(string connection) =>
_cosmosClientCache.GetOrAdd(connection, CreateCosmosClient);

private CosmosClient CreateCosmosClient(string connection) =>
connection.Contains("Accountkey") ?
connection.Contains("AccountKey") ?
new CosmosClient(connection, new CosmosClientOptions { ConnectionMode = ConnectionMode.Gateway }) :
new CosmosClient(connection, new DefaultAzureCredential(), new CosmosClientOptions { ConnectionMode = ConnectionMode.Direct });

Expand Down

0 comments on commit f87da6c

Please sign in to comment.