mirror of
https://github.com/sudosylabs/vnidrop.git
synced 2026-08-05 10:29:58 +02:00
fix(storage): reclaim transfer cache and track received files
This commit is contained in:
@@ -62,6 +62,10 @@ final class FakeCoreGateway: CoreGateway {
|
||||
func cancel(transferId: UInt64) async -> Result<Void, Error> { cancelledTransfers.append(transferId); return cancelResult }
|
||||
func delete(transferId: UInt64) async -> Result<Void, Error> { deletedTransfers.append(transferId); return deleteResult }
|
||||
func clearReceiveHistory() async -> Result<UInt64, Error> { clearReceiveHistoryCount += 1; return clearReceiveHistoryResult }
|
||||
func storageUsage() async -> Result<CoreStorageUsageModel, Error> {
|
||||
.success(CoreStorageUsageModel(blobStoreBytes: 0, appDataBytes: 0))
|
||||
}
|
||||
func receivedArtifacts() async -> Result<[ReceivedArtifactModel], Error> { .success([]) }
|
||||
func receiverRequests(transferId: UInt64) async -> Result<[ReceiverRequestModel], Error> { .success(requests[transferId] ?? []) }
|
||||
func respondReceiverRequest(requestId: String, accepted: Bool, reason: String?) async -> Result<Void, Error> {
|
||||
responses.append((requestId, accepted, reason))
|
||||
|
||||
Reference in New Issue
Block a user