diff options
| author | JP Dillingham <jp@dillingham.me> | 2024-06-02 11:15:57 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-06-02 11:15:57 -0500 |
| commit | ec31fd53e8cf91adbeae6bb20958e9c8ef85e56c (patch) | |
| tree | 654d643a003a13107f1e72da121f9273726f2bdb /src/slskd/Core | |
| parent | 960f03d59523c84a7f1fc256cbfacf541513d18a (diff) | |
| parent | bd6ed779fb1de4f1388b40bf819907291d78d367 (diff) | |
| download | slskd-ec31fd53e8cf91adbeae6bb20958e9c8ef85e56c.tar.gz | |
Merge pull request #1142 from slskd/typos
Fix a bunch of typos throughout
Diffstat (limited to 'src/slskd/Core')
| -rw-r--r-- | src/slskd/Core/Blacklist.cs | 6 | ||||
| -rw-r--r-- | src/slskd/Core/Metrics.cs | 2 | ||||
| -rw-r--r-- | src/slskd/Core/Options.cs | 4 |
3 files changed, 6 insertions, 6 deletions
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 } /// <summary> - /// Returns a value indicating whether the specified <paramref name="ip"/> is contained witin the blacklist. + /// Returns a value indicating whether the specified <paramref name="ip"/> is contained within the blacklist. /// </summary> /// <param name="ip">The IP address to check.</param> /// <returns>A value indicating whether the specified IP is contained within the blacklist.</returns> @@ -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"); /// <summary> - /// 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. /// </summary> 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 /// </summary> [Argument(default, "disk-logger")] [EnvironmentVariable("DISK_LOGGER")] - [Description("ensable logging to disk")] + [Description("enable logging to disk")] [RequiresRestart] public bool Disk { get; init; } = false; } |
