aboutsummaryrefslogtreecommitdiffstats
path: root/src/slskd/Shares/ShareService.cs
diff options
context:
space:
mode:
authorJP Dillingham <jp@dillingham.me>2022-08-23 08:59:13 -0500
committerGitHub <noreply@github.com>2022-08-23 08:59:13 -0500
commitb82b84d955d403aab4e9da1ea1fc68e08c54dbbb (patch)
tree5030e3731e4677bbc25c263847d5e14cb0cd5b19 /src/slskd/Shares/ShareService.cs
parent43b5411cbd8d85a338acc0033cfade3c509bf1f4 (diff)
parent408ae0311e8a9756808281f705f6a7f23f07fb96 (diff)
downloadslskd-b82b84d955d403aab4e9da1ea1fc68e08c54dbbb.tar.gz
Merge pull request #612 from slskd/share-ex
Make share scanning log more verbosely in debug mode, and a little easier on memory
Diffstat (limited to 'src/slskd/Shares/ShareService.cs')
-rw-r--r--src/slskd/Shares/ShareService.cs10
1 files changed, 0 insertions, 10 deletions
diff --git a/src/slskd/Shares/ShareService.cs b/src/slskd/Shares/ShareService.cs
index 169f6fff..60fbdda3 100644
--- a/src/slskd/Shares/ShareService.cs
+++ b/src/slskd/Shares/ShareService.cs
@@ -55,11 +55,6 @@ namespace slskd.Shares
Directories = current.Directories,
Files = current.Files,
});
-
- if (previous.Filling && !current.Filling)
- {
- CachedShares = current.Shares.ToList().AsReadOnly();
- }
});
OptionsMonitor = optionsMonitor;
@@ -74,11 +69,6 @@ namespace slskd.Shares
public IReadOnlyList<Share> Shares => SharesList.AsReadOnly();
/// <summary>
- /// Gets the list of shares stored in the cache.
- /// </summary>
- public IReadOnlyList<Share> CachedShares { get; private set; } = new List<Share>().AsReadOnly();
-
- /// <summary>
/// Gets the state monitor for the service.
/// </summary>
public IStateMonitor<ShareState> StateMonitor => State;