Simplify init

This commit is contained in:
Balazs Perlaki-Horvath 2025-03-22 19:08:25 +01:00
parent 6641a61b3c
commit 8fd86f1769

View File

@ -53,11 +53,9 @@ final class ActivityService {
}
private init(
publisher: @MainActor @escaping () -> CurrentValueSubject<[UUID: DownloadState], Never> = {
DownloadService.shared.progress.publisher
},
updateFrequency: Double = 2,
averageDownloadSpeedFromLastSeconds: Double = 30
publisher: @MainActor @escaping () -> CurrentValueSubject<[UUID: DownloadState], Never>,
updateFrequency: Double,
averageDownloadSpeedFromLastSeconds: Double
) {
assert(updateFrequency > 0)
assert(averageDownloadSpeedFromLastSeconds > 0)