first async refactor of fetch/index

This commit is contained in:
2024-11-17 02:31:44 +11:00
parent badc6dd39e
commit 8c7f0f23d5
13 changed files with 112 additions and 32 deletions

View File

@ -6,7 +6,7 @@
import Foundation
import CryptoKit
public struct ApkIndexDigest {
public struct ApkIndexDigest: Sendable {
public let type: DigestType
public let data: Data
@ -89,7 +89,7 @@ extension ApkIndexDigest: Equatable, Hashable {
}
public extension ApkIndexDigest {
enum DigestType {
enum DigestType: Sendable {
case md5, sha1, sha256
}
}