Skip to content

Commit

Permalink
Revert sleep, it didn't seem to fix anything
Browse files Browse the repository at this point in the history
  • Loading branch information
madelson committed Mar 17, 2024
1 parent 2b759aa commit c10f385
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/DistributedLock.FileSystem/FileDistributedLock.cs
Original file line number Diff line number Diff line change
Expand Up @@ -166,9 +166,6 @@ private static bool CanRetryTransientFileSystemError(ref int retryCount)

++retryCount;

// On the final try, pause for just 1ms to see if that helps escape the race condition
if (retryCount == MaxUnauthorizedAccessExceptionRetries) { Thread.Sleep(1); }

return true;
}
}

0 comments on commit c10f385

Please sign in to comment.