Skip to content

Commit e8a3388

Browse files
committed
Use a more appropriate protocol name
1 parent d76fa40 commit e8a3388

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

ios/MullvadPostQuantum/PostQuantumKeyNegotiator.swift

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import TalpidTunnelConfigClientProxy
1414
import WireGuardKitTypes
1515

1616
// swiftlint:disable function_parameter_count
17-
public protocol PostQuantumKeyNegotiation {
17+
public protocol PostQuantumKeyNegotiating {
1818
func startNegotiation(
1919
gatewayIP: IPv4Address,
2020
devicePublicKey: PublicKey,
@@ -32,7 +32,7 @@ public protocol PostQuantumKeyNegotiation {
3232
/**
3333
Attempt to start the asynchronous process of key negotiation. Returns true if successfully started, false if failed.
3434
*/
35-
public class PostQuantumKeyNegotiator: PostQuantumKeyNegotiation {
35+
public class PostQuantumKeyNegotiator: PostQuantumKeyNegotiating {
3636
required public init() {}
3737

3838
var cancelToken: PostQuantumCancelToken?

ios/MullvadPostQuantumTests/MullvadPostQuantum+Stubs.swift

+2-2
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ class TunnelProviderStub: TunnelProvider {
4343
}
4444
}
4545

46-
class FailedNegotiatorStub: PostQuantumKeyNegotiation {
46+
class FailedNegotiatorStub: PostQuantumKeyNegotiating {
4747
var onCancelKeyNegotiation: (() -> Void)?
4848

4949
required init() {
@@ -68,7 +68,7 @@ class FailedNegotiatorStub: PostQuantumKeyNegotiation {
6868
}
6969
}
7070

71-
class SuccessfulNegotiatorStub: PostQuantumKeyNegotiation {
71+
class SuccessfulNegotiatorStub: PostQuantumKeyNegotiating {
7272
var onCancelKeyNegotiation: (() -> Void)?
7373
required init() {
7474
onCancelKeyNegotiation = nil

ios/PacketTunnel/PostQuantumKeyExchangeActor.swift

+3-3
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import WireGuardKitTypes
1515

1616
public class PostQuantumKeyExchangeActor {
1717
struct Negotiation {
18-
var negotiator: PostQuantumKeyNegotiation
18+
var negotiator: PostQuantumKeyNegotiating
1919
var inTunnelTCPConnection: NWTCPConnection
2020
var tcpConnectionObserver: NSKeyValueObservation
2121

@@ -30,15 +30,15 @@ public class PostQuantumKeyExchangeActor {
3030
internal var negotiation: Negotiation?
3131
private var timer: DispatchSourceTimer?
3232
private var keyExchangeRetriesIterator: AnyIterator<Duration>
33-
private let negotiationProvider: PostQuantumKeyNegotiation.Type
33+
private let negotiationProvider: PostQuantumKeyNegotiating.Type
3434

3535
// Callback in the event of the negotiation failing on startup
3636
var onFailure: () -> Void
3737

3838
public init(
3939
packetTunnel: any TunnelProvider,
4040
onFailure: @escaping (() -> Void),
41-
negotiationProvider: PostQuantumKeyNegotiation.Type = PostQuantumKeyNegotiator.self,
41+
negotiationProvider: PostQuantumKeyNegotiating.Type = PostQuantumKeyNegotiator.self,
4242
keyExchangeRetriesIterator: AnyIterator<Duration> = REST.RetryStrategy.postQuantumKeyExchange
4343
.makeDelayIterator()
4444
) {

0 commit comments

Comments
 (0)