diff options
| author | JP Dillingham <jpdillingham@gmail.com> | 2021-08-15 10:00:19 -0500 |
|---|---|---|
| committer | JP Dillingham <jpdillingham@gmail.com> | 2021-08-15 10:00:19 -0500 |
| commit | 7637336a076a2da712b7f42fb322d1ef011a156f (patch) | |
| tree | 524e4ebc0b9e84f59734f8d1f2030064b078798a /src | |
| parent | 5563c62ec10fcf1cd0e90072d76f6c924100c56e (diff) | |
| download | slskd-7637336a076a2da712b7f42fb322d1ef011a156f.tar.gz | |
clarify duplicate warning
Diffstat (limited to 'src')
| -rw-r--r-- | src/slskd/Application/SharedFileCache.cs | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/slskd/Application/SharedFileCache.cs b/src/slskd/Application/SharedFileCache.cs index 4e996bf7..338e187b 100644 --- a/src/slskd/Application/SharedFileCache.cs +++ b/src/slskd/Application/SharedFileCache.cs @@ -56,10 +56,10 @@ namespace slskd private ILogger Log { get; } = Serilog.Log.ForContext<SharedFileCache>(); private HashSet<string> MaskedDirectories { get; set; } private IOptionsMonitor<Options> OptionsMonitor { get; set; } + private List<Share> Shares { get; set; } private SqliteConnection SQLite { get; set; } private SemaphoreSlim SyncRoot { get; } = new SemaphoreSlim(1); private HashSet<string> UnmaskedDirectories { get; set; } - private List<Share> Shares { get; set; } /// <summary> /// Returns the contents of the cache. @@ -143,7 +143,7 @@ namespace slskd { foreach (var dupe in duplicates) { - Log.Warning($"Overlapping shares: {string.Join(", ", dupe.Select(s => s.Raw))}. Use different alias(es) to disambiguate; downloads from these shares will most likely fail."); + Log.Warning($"Overlapping shares: {string.Join(", ", dupe.Select(s => s.Raw))}. Use different alias(es) to disambiguate; downloads from one of these shares will fail."); } } @@ -236,8 +236,8 @@ namespace slskd { var resolved = filename; - // a well-formed path will consist of a mask, either an alias or a local directory, and a - // fully qualified path to a file. split the requested filename so we can examine the first two segments + // a well-formed path will consist of a mask, either an alias or a local directory, and a fully qualified path to a + // file. split the requested filename so we can examine the first two segments var parts = filename.Split(new[] { '/', '\\' }); if (parts.Length < 2) @@ -375,12 +375,12 @@ namespace slskd } } - public string Raw { get; init; } public string Alias { get; init; } + public bool IsExcluded { get; init; } public string LocalPath { get; init; } - public string RemotePath { get; init; } public string Mask { get; init; } - public bool IsExcluded { get; init; } + public string Raw { get; init; } + public string RemotePath { get; init; } } } }
\ No newline at end of file |
