Skip to content

Commit f7a2599

Browse files
jsorefadam-fowler
andauthored
Spelling (#143)
* spelling: a Signed-off-by: Josh Soref <[email protected]> * spelling: an Signed-off-by: Josh Soref <[email protected]> * spelling: cannot Signed-off-by: Josh Soref <[email protected]> * spelling: collapse Signed-off-by: Josh Soref <[email protected]> * spelling: compatibility Signed-off-by: Josh Soref <[email protected]> * spelling: compilation Signed-off-by: Josh Soref <[email protected]> * spelling: connected Signed-off-by: Josh Soref <[email protected]> * spelling: consensus Signed-off-by: Josh Soref <[email protected]> * spelling: containing Signed-off-by: Josh Soref <[email protected]> * spelling: deep Signed-off-by: Josh Soref <[email protected]> * spelling: discovery Signed-off-by: Josh Soref <[email protected]> * spelling: existing Signed-off-by: Josh Soref <[email protected]> * spelling: fine-grained Signed-off-by: Josh Soref <[email protected]> * spelling: for Signed-off-by: Josh Soref <[email protected]> * spelling: interval Signed-off-by: Josh Soref <[email protected]> * spelling: otherwise, Signed-off-by: Josh Soref <[email protected]> * spelling: race, Signed-off-by: Josh Soref <[email protected]> * spelling: refreshes Signed-off-by: Josh Soref <[email protected]> * spelling: strideable Signed-off-by: Josh Soref <[email protected]> * spelling: that Signed-off-by: Josh Soref <[email protected]> * spelling: them Signed-off-by: Josh Soref <[email protected]> * spelling: unfortunately Signed-off-by: Josh Soref <[email protected]> * spelling: unsubscribe Signed-off-by: Josh Soref <[email protected]> * spelling: utilization Signed-off-by: Josh Soref <[email protected]> * spelling: values Signed-off-by: Josh Soref <[email protected]> --------- Signed-off-by: Josh Soref <[email protected]> Co-authored-by: Adam Fowler <[email protected]>
1 parent a9df2b6 commit f7a2599

24 files changed

+36
-36
lines changed

Notice.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ It contains a derivation of RediStack's 'RedisHashSlot.swift' and RESP3 implemen
3636

3737
---
3838

39-
This product contains a a derivation of Georges Menie's crc16 algorithm that was adopted
39+
This product contains a derivation of Georges Menie's crc16 algorithm that was adopted
4040
to Redis coding style by Salvatore Sanfilippo.
4141

4242
* LICENSE:

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,6 @@ let (setResponse, getResponse) = await connection.pipeline(
4747
let value = try getResponse.get()
4848
```
4949

50-
## Redis compatibilty
50+
## Redis compatibility
5151

52-
As Valkey is a fork of Redis v7.2.4, valkey-swift is compatible with Redis databases up to v7.2.4. There is a chance the v7.2.4 features will still be compatible in later versions of Redis, but these are now considered two different projects and they will diverge. valkey-swift uses the RESP3 protocol.
52+
As Valkey is a fork of Redis v7.2.4, valkey-swift is compatible with Redis databases up to v7.2.4. There is a chance that v7.2.4 features will still be compatible in later versions of Redis, but these are now considered two different projects and they will diverge. valkey-swift uses the RESP3 protocol.

Sources/Valkey/Cluster/ValkeyClusterClient.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -618,7 +618,7 @@ public final class ValkeyClusterClient: Sendable {
618618
return electionWinner
619619
}
620620

621-
// ensure that we have pools for all returned nodes so that we can reach concensus
621+
// ensure that we have pools for all returned nodes so that we can reach consensus
622622
let actions = self.stateLock.withLock { $0.updateValkeyServiceNodes(description) }
623623
self.runUpdateValkeyNodesAction(actions)
624624

Sources/Valkey/Cluster/ValkeyClusterClientStateMachine.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ package struct ValkeyClusterClientStateMachineConfiguration {
4848
@usableFromInline
4949
package var circuitBreakerDuration: Duration
5050

51-
/// The default duration between starts of cluster refreshs, if the previous refresh was successful
51+
/// The default duration between starts of cluster refreshes, if the previous refresh was successful
5252
package var defaultClusterRefreshInterval: Duration
5353

5454
package init(circuitBreakerDuration: Duration, defaultClusterRefreshInterval: Duration) {
@@ -78,7 +78,7 @@ package struct ValkeyClusterClientStateMachine<
7878
case unavailable(UnavailableContext)
7979

8080
/// The cluster was healthy before, but we received a MOVED error to an unknown host
81-
/// In this state we have about a minute to become healthy again. Otherwise we mark
81+
/// In this state we have about a minute to become healthy again. Otherwise, we mark
8282
/// the cluster as unavailable.
8383
case degraded(DegradedContext)
8484

Sources/Valkey/Cluster/ValkeyNodeDiscovery.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
//===----------------------------------------------------------------------===//
1414

1515
/// Allows the cluster client to initially find at least one node in the cluster or find the
16-
/// nodes again if connection to the has been lost.
16+
/// nodes again if connection to them has been lost.
1717
public protocol ValkeyNodeDiscovery: Sendable {
1818
/// A type that describes a single node in a valkey cluster
1919
associatedtype NodeDescription: ValkeyNodeDescriptionProtocol

Sources/Valkey/Connection/ValkeyConnection+ConnectionPool.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ final class ValkeyClientMetrics: ConnectionPoolObservabilityDelegate {
102102
)
103103
}
104104

105-
/// The utlization of the connection changed; a stream may have been used, returned or the
105+
/// The utilization of the connection changed; a stream may have been used, returned or the
106106
/// maximum number of concurrent streams available on the connection changed.
107107
func connectionLeased(id: ConnectionID) {
108108
self.logger.debug(

Sources/Valkey/Connection/ValkeyConnection.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ public final actor ValkeyConnection: ValkeyConnectionProtocol, Sendable {
159159
}
160160
}
161161
let requestID = Self.requestIDGenerator.next()
162-
// this currently allocates a promise for every command. We could collpase this down to one promise
162+
// this currently allocates a promise for every command. We could collapse this down to one promise
163163
var mpromises: [EventLoopPromise<RESPToken>] = []
164164
var encoder = ValkeyCommandEncoder()
165165
for command in repeat each commands {
@@ -235,12 +235,12 @@ public final actor ValkeyConnection: ValkeyConnectionProtocol, Sendable {
235235
case .hostname(let host, let port):
236236
future = connect.connect(host: host, port: port)
237237
future.whenSuccess { _ in
238-
logger.debug("Client connnected to \(host):\(port)")
238+
logger.debug("Client connected to \(host):\(port)")
239239
}
240240
case .unixDomainSocket(let path):
241241
future = connect.connect(unixDomainSocketPath: path)
242242
future.whenSuccess { _ in
243-
logger.debug("Client connnected to socket path \(path)")
243+
logger.debug("Client connected to socket path \(path)")
244244
}
245245
}
246246

Sources/Valkey/RESP/RESPStringRenderable.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ extension Data: RESPStringRenderable {}
4747

4848
/// Internal type used to render RESPStringRenderable conforming type.
4949
///
50-
/// Unforunately we cannot conform RESPStringRenderable to RESPRenderable if we want
50+
/// Unfortunately we cannot conform RESPStringRenderable to RESPRenderable if we want
5151
/// Collections to conform to RESPStringRenderable, as there is already a conformance
5252
/// to Collection when all the elements conform to RESPRenderable.
5353
@usableFromInline

Sources/Valkey/RESP/RESPTokenDecodable.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ extension RESPToken: RESPTokenDecodable {
3434
/// This function also checks for RESP error types and returns them if found
3535
///
3636
/// - Parameter type: Type to convert to
37-
/// - Returns: Result contaoining either the Value or an error
37+
/// - Returns: Result containing either the Value or an error
3838
@usableFromInline
3939
func decodeResult<Value: RESPTokenDecodable>(as type: Value.Type = Value.self) -> Result<Value, Error> {
4040
switch self.identifier {

Sources/ValkeyConnectionPool/ConnectionPool.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -429,7 +429,7 @@ where
429429
self.connectionEstablished(bundle)
430430

431431
// after the connection has been established, we keep the task open. This ensures
432-
// that the pools run method can not be exited before all connections have been
432+
// that the pools run method cannot be exited before all connections have been
433433
// closed.
434434
await withCheckedContinuation { (continuation: CheckedContinuation<Void, Never>) in
435435
bundle.connection.onClose {

0 commit comments

Comments
 (0)