From bd6ed779fb1de4f1388b40bf819907291d78d367 Mon Sep 17 00:00:00 2001 From: JP Dillingham Date: Sun, 2 Jun 2024 11:10:37 -0500 Subject: fix typos --- src/slskd/Core/Blacklist.cs | 6 +++--- src/slskd/Core/Metrics.cs | 2 +- src/slskd/Core/Options.cs | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) (limited to 'src/slskd/Core') diff --git a/src/slskd/Core/Blacklist.cs b/src/slskd/Core/Blacklist.cs index 76f0b37f..84e6feb6 100644 --- a/src/slskd/Core/Blacklist.cs +++ b/src/slskd/Core/Blacklist.cs @@ -179,7 +179,7 @@ public class Blacklist { if (format == BlacklistFormat.AutoDetect) { - Log.Debug("Attempting to auto-detect blacklist fomat from contents..."); + Log.Debug("Attempting to auto-detect blacklist format from contents..."); format = await DetectFormat(filename); // FormatException if unsuccessful Log.Debug("Detected blacklist format {Format}", format); } @@ -294,7 +294,7 @@ public class Blacklist } /// - /// Returns a value indicating whether the specified is contained witin the blacklist. + /// Returns a value indicating whether the specified is contained within the blacklist. /// /// The IP address to check. /// A value indicating whether the specified IP is contained within the blacklist. @@ -310,7 +310,7 @@ public class Blacklist return false; } - // conver the entire IP to a uint + // convert the entire IP to a uint var ipAsUint32 = ToUint32(ip); // check the list for this octet sequentially until the first match diff --git a/src/slskd/Core/Metrics.cs b/src/slskd/Core/Metrics.cs index b11d9d8f..7e0b0f6e 100644 --- a/src/slskd/Core/Metrics.cs +++ b/src/slskd/Core/Metrics.cs @@ -123,7 +123,7 @@ namespace slskd public static Gauge BranchLevel { get; } = Prometheus.Metrics.CreateGauge("slskd_dnet_branch_level", "Current distributed branch level"); /// - /// Gets a gauge representing the most recent average time tekn to broadcast incoming search requests to connected children. + /// Gets a gauge representing the most recent average time taken to broadcast incoming search requests to connected children. /// public static Gauge CurrentBroadcastLatency { get; } = Prometheus.Metrics.CreateGauge("slskd_dnet_broadcast_latency_current", "The average time taken to broadcast incoming search requests to connected children"); diff --git a/src/slskd/Core/Options.cs b/src/slskd/Core/Options.cs index dcba5cc0..05174031 100644 --- a/src/slskd/Core/Options.cs +++ b/src/slskd/Core/Options.cs @@ -744,7 +744,7 @@ namespace slskd bool IsBlankPath(string share) => Regex.IsMatch(share.LocalizePath(), @"^(!|-){0,1}(\[.*\])$"); directories?.Where(share => IsBlankPath(share)).ToList() - .ForEach(blank => results.Add(new ValidationResult($"Share {blank} doees not specify a path"))); + .ForEach(blank => results.Add(new ValidationResult($"Share {blank} does not specify a path"))); bool IsRootMount(string share) => Regex.IsMatch(share.LocalizePath(), @"^(!|-){0,1}(\[.*\])/$"); directories?.Where(share => IsRootMount(share)).ToList() @@ -1291,7 +1291,7 @@ namespace slskd /// [Argument(default, "disk-logger")] [EnvironmentVariable("DISK_LOGGER")] - [Description("ensable logging to disk")] + [Description("enable logging to disk")] [RequiresRestart] public bool Disk { get; init; } = false; } -- cgit v1.2.3