From a9853bc7f355dfa5b3cc8d9ca1e7dc3d5b48e17c Mon Sep 17 00:00:00 2001 From: JP Dillingham Date: Thu, 22 Sep 2022 07:44:08 -0500 Subject: remove paranoid wait; it's simply not possible for this to happen concurrently with filesystem changes. --- src/slskd/Shares/SharedFileCache.cs | 3 --- 1 file changed, 3 deletions(-) (limited to 'src/slskd/Shares/SharedFileCache.cs') diff --git a/src/slskd/Shares/SharedFileCache.cs b/src/slskd/Shares/SharedFileCache.cs index a3de7e0f..a42e8179 100644 --- a/src/slskd/Shares/SharedFileCache.cs +++ b/src/slskd/Shares/SharedFileCache.cs @@ -177,9 +177,6 @@ namespace slskd.Shares await Task.Yield(); - // there's an *extremely* unlikely chance that scans run back to back and result in a duplicate scanId - // to be super safe, wait a few milliseconds to make sure that we'll get a new timestamp. - await Task.Delay(50, cancellationToken); var timestamp = DateTimeOffset.UtcNow.ToUnixTimeMilliseconds(); var sw = new Stopwatch(); -- cgit v1.2.3