TM-SGNL-iOS/SignalServiceKit/Groups/GroupsV2AvatarDownloadOperation.swift
TeleMessage developers dde0620daf initial commit
2025-05-03 12:28:28 -07:00

14 lines
432 B
Swift

//
// Copyright 2020 Signal Messenger, LLC
// SPDX-License-Identifier: AGPL-3.0-only
//
import Foundation
enum GroupsV2AvatarDownloadOperation {
static func run(urlPath: String, maxDownloadSize: UInt) async throws -> Data {
return try await Retry.performWithBackoff(maxAttempts: 4) {
return try await CDNDownloadOperation.tryToDownload(urlPath: urlPath, maxDownloadSize: maxDownloadSize)
}
}
}