diff --git a/Sources/Services/Network/Server/AttachmentAllocator.swift b/Sources/Services/Network/Server/AttachmentAllocator.swift index b7d3aeebb..1884f9ab6 100644 --- a/Sources/Services/Network/Server/AttachmentAllocator.swift +++ b/Sources/Services/Network/Server/AttachmentAllocator.swift @@ -53,7 +53,7 @@ actor AttachmentAllocator { } /// Retrieve the allocator index for a hostname. - func lookup(hostname: String) async throws -> UInt32? { + func lookup(hostname: String) throws -> UInt32? { hostnames[hostname] } } diff --git a/Sources/Services/Network/Server/DefaultNetworkService.swift b/Sources/Services/Network/Server/DefaultNetworkService.swift index 29f3fbe82..01519f205 100644 --- a/Sources/Services/Network/Server/DefaultNetworkService.swift +++ b/Sources/Services/Network/Server/DefaultNetworkService.swift @@ -127,7 +127,7 @@ public actor DefaultNetworkService: NetworkService { } // Invariant: hostname -> index if and only if index -> MAC address - let index = try await allocator.lookup(hostname: hostname) + let index = try allocator.lookup(hostname: hostname) guard let index else { return nil }