Skip to content

Commit 6b08c7d

Browse files
andrewjl-muxrefactornator
authored andcommitted
NFC: call into upload manager reference (#14)
1 parent 835e5f4 commit 6b08c7d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Sources/MuxUploadSDK/Public API/MuxUpload.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ public final class MuxUpload {
126126
public func start(forceRestart: Bool = false) {
127127
if self.manageBySDK {
128128
// See if there's anything in progress already
129-
fileWorker = UploadManager.shared.findUploaderFor(videoFile: videoFile)
129+
fileWorker = uploadManager.findUploaderFor(videoFile: videoFile)
130130
}
131131
guard !forceRestart && fileWorker == nil else {
132132
MuxUploadSDK.logger?.warning("start() called but upload is in progress")
@@ -160,7 +160,7 @@ public final class MuxUpload {
160160
*/
161161
public func cancel() {
162162
fileWorker?.cancel()
163-
UploadManager.shared.acknowledgeUpload(ofFile: videoFile)
163+
uploadManager.acknowledgeUpload(ofFile: videoFile)
164164

165165
lastSeenStatus = Status(progress: nil, updatedTime: 0, startTime: 0, isPaused: true)
166166
progressHandler = nil

0 commit comments

Comments
 (0)