Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Sources/Services/Network/Server/AttachmentAllocator.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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]
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down