Skip to content

Commit 872a8a7

Browse files
change name parameter
Signed-off-by: Marino Faggiana <marino@marinofaggiana.com>
1 parent 9c306ff commit 872a8a7

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

Sources/NextcloudKit/NextcloudKit+Upload.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ public extension NextcloudKit {
220220
taskHandler: @escaping (_ task: URLSessionTask) -> Void = { _ in },
221221
progressHandler: @escaping (_ totalBytesExpected: Int64, _ totalBytes: Int64, _ fractionCompleted: Double) -> Void = { _, _, _ in },
222222
uploaded: @escaping (_ fileChunk: (fileName: String, size: Int64)) -> Void = { _ in },
223-
assemble: @escaping () -> Void = { },
223+
assembling: @escaping () -> Void = { },
224224
completion: @escaping (_ account: String, _ filesChunk: [(fileName: String, size: Int64)]?, _ file: NKFile?, _ error: NKError) -> Void) {
225225
guard let nkSession = nkCommonInstance.nksessions.session(forAccount: account) else {
226226
return completion(account, nil, nil, .urlError)
@@ -374,7 +374,7 @@ public extension NextcloudKit {
374374
let assembleTimeMax: Double = 30 * 60 // 30 min
375375
options.timeout = max(assembleTimeMin, min(assembleTimePerGB * assembleSizeInGB, assembleTimeMax))
376376

377-
assemble()
377+
assembling()
378378

379379
self.moveFileOrFolder(serverUrlFileNameSource: serverUrlFileNameSource, serverUrlFileNameDestination: serverUrlFileName, overwrite: true, account: account, options: options) { _, _, error in
380380
guard error == .success else {
@@ -417,7 +417,7 @@ public extension NextcloudKit {
417417
requestHandler: @escaping (_ request: UploadRequest) -> Void = { _ in },
418418
taskHandler: @escaping (_ task: URLSessionTask) -> Void = { _ in },
419419
progressHandler: @escaping (_ totalBytesExpected: Int64, _ totalBytes: Int64, _ fractionCompleted: Double) -> Void = { _, _, _ in },
420-
assemble: @escaping () -> Void = { },
420+
assembling: @escaping () -> Void = { },
421421
uploaded: @escaping (_ fileChunk: (fileName: String, size: Int64)) -> Void = { _ in }
422422
) async -> (account: String, remainingChunks: [(fileName: String, size: Int64)]?, file: NKFile?, error: NKError) {
423423
await withCheckedContinuation { continuation in
@@ -440,7 +440,7 @@ public extension NextcloudKit {
440440
taskHandler: taskHandler,
441441
progressHandler: progressHandler,
442442
uploaded: uploaded,
443-
assemble: assemble) { account, remaining, file, error in
443+
assembling: assembling) { account, remaining, file, error in
444444
continuation.resume(returning: (account: account, remainingChunks: remaining, file: file, error: error))
445445
}
446446
}

0 commit comments

Comments
 (0)