From 7637336a076a2da712b7f42fb322d1ef011a156f Mon Sep 17 00:00:00 2001 From: JP Dillingham Date: Sun, 15 Aug 2021 10:00:19 -0500 Subject: clarify duplicate warning --- src/slskd/Application/SharedFileCache.cs | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'src/slskd/Application/SharedFileCache.cs') 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(); private HashSet MaskedDirectories { get; set; } private IOptionsMonitor OptionsMonitor { get; set; } + private List Shares { get; set; } private SqliteConnection SQLite { get; set; } private SemaphoreSlim SyncRoot { get; } = new SemaphoreSlim(1); private HashSet UnmaskedDirectories { get; set; } - private List Shares { get; set; } /// /// 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 -- cgit v1.2.3