diff options
| author | Bug Magnet <marco.nikic@mullvad.net> | 2025-05-16 16:20:55 +0200 |
|---|---|---|
| committer | Bug Magnet <marco.nikic@mullvad.net> | 2025-05-27 14:53:21 +0200 |
| commit | bbf890b10bda837308c05a3de6ac67df5aa2e06e (patch) | |
| tree | 3cac8d83c8c28c2532d3649a5a13d2e54e351cc4 /ios/PacketTunnel/DeviceCheck/DeviceCheckOperation.swift | |
| parent | 6c9f7ec18da5bd26ce5880e5dc8f5c8b83d5f77f (diff) | |
| download | mullvadvpn-bbf890b10bda837308c05a3de6ac67df5aa2e06e.tar.xz mullvadvpn-bbf890b10bda837308c05a3de6ac67df5aa2e06e.zip | |
Enable Swift 6 mode for the PacketTunnel and test Target
Diffstat (limited to 'ios/PacketTunnel/DeviceCheck/DeviceCheckOperation.swift')
| -rw-r--r-- | ios/PacketTunnel/DeviceCheck/DeviceCheckOperation.swift | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ios/PacketTunnel/DeviceCheck/DeviceCheckOperation.swift b/ios/PacketTunnel/DeviceCheck/DeviceCheckOperation.swift index 926b94a9e3..ab88b22167 100644 --- a/ios/PacketTunnel/DeviceCheck/DeviceCheckOperation.swift +++ b/ios/PacketTunnel/DeviceCheck/DeviceCheckOperation.swift @@ -66,7 +66,7 @@ final class DeviceCheckOperation: ResultOperation<DeviceCheck>, @unchecked Senda Begins the flow by fetching device state and then fetching account and device data. Calls `didReceiveData()` with the received data when done. */ - private func startFlow(completion: @escaping (Result<DeviceCheck, Error>) -> Void) { + private func startFlow(completion: @escaping @Sendable (Result<DeviceCheck, Error>) -> Void) { do { guard case let .loggedIn(accountData, deviceData) = try deviceStateAccessor.read() else { throw DeviceCheckError.invalidDeviceState @@ -90,7 +90,7 @@ final class DeviceCheckOperation: ResultOperation<DeviceCheck>, @unchecked Senda private func didReceiveData( accountResult: Result<Account, Error>, deviceResult: Result<Device, Error>, - completion: @escaping (Result<DeviceCheck, Error>) -> Void + completion: @escaping @Sendable (Result<DeviceCheck, Error>) -> Void ) { do { let accountVerdict = try accountVerdict(from: accountResult) @@ -158,7 +158,7 @@ final class DeviceCheckOperation: ResultOperation<DeviceCheck>, @unchecked Senda then it rotate device key by marking the beginning of key rotation, updating device state and persisting before proceeding to rotate the key. */ - private func rotateKeyIfNeeded(completion: @escaping (Result<KeyRotationStatus, Error>) -> Void) { + private func rotateKeyIfNeeded(completion: @escaping @Sendable (Result<KeyRotationStatus, Error>) -> Void) { let deviceState: DeviceState do { deviceState = try deviceStateAccessor.read() |
