aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJP Dillingham <jp@dillingham.me>2022-09-22 07:44:08 -0500
committerJP Dillingham <jp@dillingham.me>2022-09-22 07:44:08 -0500
commita9853bc7f355dfa5b3cc8d9ca1e7dc3d5b48e17c (patch)
tree7c3e6551c7b7805529d76553d04d0ca6068b25ae /src
parent49552b02365ea7bcb6402296a9baca2e4aec374c (diff)
downloadslskd-a9853bc7f355dfa5b3cc8d9ca1e7dc3d5b48e17c.tar.gz
remove paranoid wait; it's simply not possible for this to happen concurrently with filesystem changes.
Diffstat (limited to 'src')
-rw-r--r--src/slskd/Shares/SharedFileCache.cs3
1 files changed, 0 insertions, 3 deletions
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();