Enabling strict memory safety. (#683)

This commit is contained in:
Max Goedjen
2025-09-09 20:41:29 -07:00
committed by GitHub
parent 6854c05763
commit 8c516e128a
18 changed files with 55 additions and 55 deletions

View File

@@ -34,7 +34,7 @@ class AppDelegate: NSObject, NSApplicationDelegate {
func applicationDidFinishLaunching(_ aNotification: Notification) {
logger.debug("SecretAgent finished launching")
Task {
let inputParser = try XPCAgentInputParser()
let inputParser = try await XPCAgentInputParser()
for await session in socketController.sessions {
Task {
do {

View File

@@ -8,8 +8,8 @@ public final class XPCAgentInputParser: SSHAgentInputParserProtocol {
private let session: XPCTypedSession<SSHAgent.Request, SSHAgentInputParser.AgentParsingError>
public init() throws {
session = try XPCTypedSession(serviceName: "com.maxgoedjen.Secretive.SecretAgentInputParser", warmup: true)
public init() async throws {
session = try await XPCTypedSession(serviceName: "com.maxgoedjen.Secretive.SecretAgentInputParser", warmup: true)
}
public func parse(data: Data) async throws -> SSHAgent.Request {