diff options
| author | JP Dillingham <jp@dillingham.me> | 2022-10-13 09:43:17 -0500 |
|---|---|---|
| committer | JP Dillingham <jp@dillingham.me> | 2022-10-13 09:43:17 -0500 |
| commit | 43c19eac0b258c852fc10d017daf1ee010f8cdcc (patch) | |
| tree | e74762e49f030ab95408c9a4ac56e71e89e6e17a /src/slskd/Shares/ShareScanner.cs | |
| parent | 1e87c47a84ab5b2188fb34aa642b8bae123dc2d3 (diff) | |
| download | slskd-43c19eac0b258c852fc10d017daf1ee010f8cdcc.tar.gz | |
differentiate read and read/write repositories. add host collection
Diffstat (limited to 'src/slskd/Shares/ShareScanner.cs')
| -rw-r--r-- | src/slskd/Shares/ShareScanner.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/slskd/Shares/ShareScanner.cs b/src/slskd/Shares/ShareScanner.cs index 7a174396..f5e7e52d 100644 --- a/src/slskd/Shares/ShareScanner.cs +++ b/src/slskd/Shares/ShareScanner.cs @@ -67,7 +67,7 @@ namespace slskd.Shares /// <param name="soulseekFileFactory"></param> public ShareScanner( int workerCount, - IShareRepository shareRepository, + IReadWriteShareRepository shareRepository, ISoulseekFileFactory soulseekFileFactory = null) { WorkerCount = workerCount; @@ -87,7 +87,7 @@ namespace slskd.Shares private IManagedState<SharedFileCacheState> State { get; } = new ManagedState<SharedFileCacheState>(); private SemaphoreSlim SyncRoot { get; } = new SemaphoreSlim(1); private CancellationTokenSource CancellationTokenSource { get; set; } - private IShareRepository Repository { get; } + private IReadWriteShareRepository Repository { get; } /// <summary> /// Scans the configured shares and fills the cache. |
