From 0c1aedd8eebb591aeadc9bdcd1ccf351ab47c77a Mon Sep 17 00:00:00 2001 From: JP Dillingham Date: Sat, 20 Apr 2024 17:48:31 -0500 Subject: docs --- src/slskd/Core/Blacklist.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/slskd/Core/Blacklist.cs b/src/slskd/Core/Blacklist.cs index 9f49c022..857b9002 100644 --- a/src/slskd/Core/Blacklist.cs +++ b/src/slskd/Core/Blacklist.cs @@ -162,6 +162,7 @@ public class Blacklist /// The fully qualified path to the file to load. /// The optional blacklist file format. /// The operation context. + /// Thrown if the specified filename can't be accessed. /// /// Thrown if any of the lines in the file do not match the specified or auto-detected . /// @@ -173,7 +174,7 @@ public class Blacklist if (format == BlacklistFormat.AutoDetect) { Log.Debug("Attempting to auto-detect blacklist fomat from contents..."); - format = await AutoDetectBlacklistFormat(filename); // FormatException if unsuccessful + format = await DetectFormat(filename); // FormatException if unsuccessful Log.Debug("Detected blacklist format {Format}", format); } @@ -267,7 +268,7 @@ public class Blacklist // copy working dictionary to a temporary cache to: // * convert List<> to array to increase access speed - // * sort arrays by first IP to enable binary search + // * sort arrays by first IP to enable binary search (future?) var tempCache = new ConcurrentDictionary(); foreach (var key in dict.Keys) -- cgit v1.2.3