Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Sources/NIOCore/EventLoopFuture.swift
Original file line number Diff line number Diff line change
Expand Up @@ -899,7 +899,7 @@ extension EventLoopFuture {

/// Internal: Set the value and return a list of callbacks that should be invoked as a result.
///
/// We need a seperate method for setting the error to avoid Sendable checking of `Value`
/// We need a separate method for setting the error to avoid Sendable checking of `Value`
@inlinable
internal func _setError(_ error: Error) -> CallbackList {
self.eventLoop.assertInEventLoop()
Expand Down
8 changes: 4 additions & 4 deletions Sources/NIOPerformanceTester/UDPBenchmark.swift
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ extension UDPBenchmark {
/// Number of requests still to send.
var requestsToSend: Int
/// Number of responses still being waited for.
var responsesToRecieve: Int
var responsesToReceive: Int
/// Number of writes before the next flush, i.e. flush on zero.
var writesBeforeNextFlush: Int
/// Number of writes before each flush.
Expand All @@ -137,7 +137,7 @@ extension UDPBenchmark {

init(requests: Int, writesPerFlush: Int, promise: EventLoopPromise<Void>) {
self.requestsToSend = requests
self.responsesToRecieve = requests
self.responsesToReceive = requests
self.writesBeforeNextFlush = writesPerFlush
self.writesPerFlush = writesPerFlush
self.promise = promise
Expand Down Expand Up @@ -169,8 +169,8 @@ extension UDPBenchmark {
mutating func receive() -> Receive {
switch self.state {
case .running(var running):
running.responsesToRecieve &-= 1
if running.responsesToRecieve == 0, running.requestsToSend == 0 {
running.responsesToReceive &-= 1
if running.responsesToReceive == 0, running.requestsToSend == 0 {
self.state = .stopped
return .finished(running.promise)
} else {
Expand Down
2 changes: 1 addition & 1 deletion Tests/NIOPosixTests/ChannelTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -1660,7 +1660,7 @@ final class ChannelTests: XCTestCase {
// this should escalate to a full closure of the clientChannel.
XCTAssertNoThrow(try clientChannel.close(mode: .output).wait())

// Assert that full closure of client channel occured by verifying
// Assert that full closure of client channel occurred by verifying
// that channelInactive was invoked on the channel.
XCTAssertNoThrow(try clientChannelInactivePromise.futureResult.wait())

Expand Down
Loading