Skip to content

Commit 276735d

Browse files
committed
fix check-unacceptable-language
1 parent 29a714f commit 276735d

File tree

6 files changed

+8
-33
lines changed

6 files changed

+8
-33
lines changed

NOTICE.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ components that this product depends on.
2929
This product contains some modified data-structures from Apple/Swift-NIO.
3030

3131
* LICENSE (Apache 2.0):
32-
* https://github.com/apple/swift-nio/blob/master/LICENSE.txt
32+
* https://github.com/apple/swift-nio/blob/main/LICENSE.txt
3333
* HOMEPAGE:
3434
* https://github.com/apple/swift-nio
3535

Samples/README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Use `swift run` to run the samples.
55
### SWIMNIOSampleCluster
66

77
This sample app runs a _single node_ per process, however it is prepared to be easily clustered up.
8-
This mode of operation is useful to manually suspend or kill processes and see those issues be picked up by the SWIM implementation.
8+
This mode of operation is useful to manually suspend or stop processes and see those issues be picked up by the SWIM implementation.
99

1010
Recommended way to run:
1111

@@ -35,7 +35,7 @@ Once the cluster is formed, you'll see messages logged by the `SWIMNIOSampleHand
3535

3636
You can enable debug or trace level logging to inspect more of the details of what is going on internally in the nodes.
3737

38-
To see the failure detection in action, you can kill processes, or "suspend" them for a little while by doing
38+
To see the failure detection in action, you can stop processes, or "suspend" them for a little while by doing
3939

4040
```bash
4141
# swift run --package-path Samples SWIMNIOSampleCluster --port 7001

Sources/SWIM/SWIMInstance.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ extension SWIM {
286286
}
287287

288288
// just in case we had a peer added manually, and thus we did not know its uuid, let us remove it
289-
// maybe we replaced a mismatching UID node already, but let's sanity check and remove also if we stored any "without UID" node
289+
// maybe we replaced a mismatching UID node already, but let's check and remove also if we stored any "without UID" node
290290
if let removed = self._members.removeValue(forKey: self.node.withoutUID) {
291291
switch self.confirmDead(peer: removed.peer) {
292292
case .ignored:

Tests/SWIMNIOExampleTests/SWIMNIOClusteredTests.swift

+2-2
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,8 @@ final class SWIMNIOClusteredTests: RealClusteredXCTestCase {
5757
.awaitLog(grep: #""swim/members/count": 2"#)
5858

5959
// close first channel
60-
firstHandler.log.warning("Killing \(firstHandler.shell.node)...")
61-
secondHandler.log.warning("Killing \(firstHandler.shell.node)...")
60+
firstHandler.log.warning("Stopping \(firstHandler.shell.node)...")
61+
secondHandler.log.warning("Stopping \(firstHandler.shell.node)...")
6262
try firstChannel.close().wait()
6363

6464
// we should get back down to a 1 node cluster

Tests/SWIMTests/SWIMInstanceTests.swift

+2-2
Original file line numberDiff line numberDiff line change
@@ -432,7 +432,7 @@ final class SWIMInstanceTests: XCTestCase {
432432
)
433433

434434
// those are illegal, but even IF they happened at least we'd never bubble them up to high level
435-
// moving from .dead to any other state is illegal and should assert // TODO: sanity check
435+
// moving from .dead to any other state is illegal and should assert // TODO: check
436436
XCTAssertFalse(
437437
SWIM.MemberStatusChangedEvent(
438438
previousStatus: .dead,
@@ -1612,7 +1612,7 @@ final class SWIMInstanceTests: XCTestCase {
16121612
// MARK: Checks
16131613

16141614
/// This test is weird and should "never" fail, but it did, on some toolchains.
1615-
/// This test is to remain here as a sanity check if timeouts or something else would suddenly return unexpected values.
1615+
/// This test is to remain here as a check if timeouts or something else would suddenly return unexpected values.
16161616
func test_log_becauseWeSawItReturnWronglyOnSomeToolchains() {
16171617
XCTAssertEqual(log2(4.0), 2)
16181618
}

dev/diff_update_license_header_year.sh

-25
This file was deleted.

0 commit comments

Comments
 (0)