Skip to content

Commit

Permalink
Merge pull request #646 from Particular/container-public-access-type-82
Browse files Browse the repository at this point in the history
  • Loading branch information
SeanFeldman authored Jun 15, 2021
2 parents 16a6598 + bc6c4d9 commit 4a00e7f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Transport/DelayDelivery/LockManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public async Task<bool> TryLockOrRenew(CancellationToken cancellationToken)
return true;
}
catch (StorageException exception)
when (exception.RequestInformation.HttpStatusCode == (int) HttpStatusCode.Conflict)
when (exception.RequestInformation.HttpStatusCode == (int)HttpStatusCode.Conflict)
{
// someone else raced for the lease and got it
return false;
Expand All @@ -45,7 +45,7 @@ public async Task<bool> TryLockOrRenew(CancellationToken cancellationToken)
return true;
}
catch (StorageException exception)
when (exception.RequestInformation.HttpStatusCode == (int) HttpStatusCode.Conflict)
when (exception.RequestInformation.HttpStatusCode == (int)HttpStatusCode.Conflict)
{
// someone else raced for the lease and got it so we have to try to re-acquire it
lease = null;
Expand Down Expand Up @@ -77,7 +77,7 @@ async Task EnsureContainerExists(CancellationToken cancellationToken)
{
if (created == false)
{
await container.CreateIfNotExistsAsync(BlobContainerPublicAccessType.Container, null,null, cancellationToken).ConfigureAwait(false);
await container.CreateIfNotExistsAsync(BlobContainerPublicAccessType.Off, null, null, cancellationToken).ConfigureAwait(false);
created = true;
}
}
Expand Down

0 comments on commit 4a00e7f

Please sign in to comment.