aboutsummaryrefslogtreecommitdiffstats
path: root/src/slskd
diff options
context:
space:
mode:
authorJP Dillingham <jpdillingham@gmail.com>2022-05-30 16:11:24 -0500
committerJP Dillingham <jpdillingham@gmail.com>2022-05-30 16:11:24 -0500
commit5b7744f92c8b3913844942d2d44f90cdbc65cb4e (patch)
tree5dd5e87dee3e568cb26b9590a367a42833a6b282 /src/slskd
parent41897719b57ac3b64a1a9f2f78982e6c9b6dc868 (diff)
downloadslskd-5b7744f92c8b3913844942d2d44f90cdbc65cb4e.tar.gz
rename one final time
Diffstat (limited to 'src/slskd')
-rw-r--r--src/slskd/Shares/SharedFileCache.cs10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/slskd/Shares/SharedFileCache.cs b/src/slskd/Shares/SharedFileCache.cs
index 1a465903..b06f7be6 100644
--- a/src/slskd/Shares/SharedFileCache.cs
+++ b/src/slskd/Shares/SharedFileCache.cs
@@ -40,7 +40,7 @@ namespace slskd.Shares
/// <summary>
/// Gets the cache state monitor.
/// </summary>
- IStateMonitor<ShareState.CacheState> StateMonitor { get; }
+ IStateMonitor<SharedFileCacheState> StateMonitor { get; }
/// <summary>
/// Returns the contents of the cache.
@@ -51,9 +51,7 @@ namespace slskd.Shares
/// <summary>
/// Scans the configured shares and fills the cache.
/// </summary>
- /// <remarks>
- /// Initiates the scan, then yields
- /// </remarks>
+ /// <remarks>Initiates the scan, then yields execution back to the caller; does not wait for the operation to complete.</remarks>
/// <param name="shares">The list of shares from which to fill the cache.</param>
/// <returns>The operation context.</returns>
Task FillAsync(IEnumerable<Share> shares);
@@ -102,7 +100,7 @@ namespace slskd.Shares
/// <summary>
/// Gets the cache state monitor.
/// </summary>
- public IStateMonitor<ShareState.CacheState> StateMonitor => State;
+ public IStateMonitor<SharedFileCacheState> StateMonitor => State;
private ILogger Log { get; } = Serilog.Log.ForContext<SharedFileCache>();
private HashSet<string> MaskedDirectories { get; set; }
@@ -111,7 +109,7 @@ namespace slskd.Shares
private List<Share> Shares { get; set; }
private ISoulseekFileFactory SoulseekFileFactory { get; }
private SqliteConnection SQLite { get; set; }
- private IManagedState<ShareState.CacheState> State { get; } = new ManagedState<ShareState.CacheState>();
+ private IManagedState<SharedFileCacheState> State { get; } = new ManagedState<SharedFileCacheState>();
private SemaphoreSlim SyncRoot { get; } = new SemaphoreSlim(1);
/// <summary>