Skip to content

Commit

Permalink
Merge pull request #1602 from shayhatsor/master
Browse files Browse the repository at this point in the history
remove redundant lock in AzureGatewayListProvider
  • Loading branch information
Gabriel Kliot committed Mar 23, 2016
2 parents c427526 + 40d3451 commit dfadfd4
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/OrleansAzureUtils/Storage/AzureGatewayListProvider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ internal class AzureGatewayListProvider : IGatewayListProvider
{
private OrleansSiloInstanceManager siloInstanceManager;
private ClientConfiguration config;
private readonly object lockable = new object();

#region Implementation of IGatewayListProvider

Expand All @@ -25,11 +24,8 @@ public async Task InitializeGatewayListProvider(ClientConfiguration conf, TraceL
// no caching
public Task<IList<Uri>> GetGateways()
{
lock (lockable)
{
// FindAllGatewayProxyEndpoints already returns a deep copied List<Uri>.
return siloInstanceManager.FindAllGatewayProxyEndpoints();
}
// FindAllGatewayProxyEndpoints already returns a deep copied List<Uri>.
return siloInstanceManager.FindAllGatewayProxyEndpoints();
}

public TimeSpan MaxStaleness
Expand Down

0 comments on commit dfadfd4

Please sign in to comment.