浏览代码

maxConcurrentOperationUpload in brand

Signed-off-by: Marino Faggiana <8616947+marinofaggiana@users.noreply.github.com>
Marino Faggiana 1 年之前
父节点
当前提交
b2d06ee941
共有 2 个文件被更改,包括 4 次插入1 次删除
  1. 3 0
      Brand/NCBrand.swift
  2. 1 1
      iOSClient/Networking/NCNetworkingProcessUpload.swift

+ 3 - 0
Brand/NCBrand.swift

@@ -84,6 +84,9 @@ let userAgent: String = {
     // Internal option behaviour
     @objc public var cleanUpDay: Int = 0                                                        // Set default "Delete, in the cache, all files older than" possible days value are: 0, 1, 7, 30, 90, 180, 365
 
+    // Max upload concurrent
+    public let maxConcurrentOperationUpload: Int = 10
+
     // Info Paging
     enum NCInfoPagingTab: Int, CaseIterable {
         case activity, sharing

+ 1 - 1
iOSClient/Networking/NCNetworkingProcessUpload.swift

@@ -99,7 +99,7 @@ class NCNetworkingProcessUpload: NSObject {
 
         let applicationState = UIApplication.shared.applicationState
         let queue = DispatchQueue.global()
-        var maxConcurrentOperationUpload = 10
+        var maxConcurrentOperationUpload = NCBrandOptions.shared.maxConcurrentOperationUpload
         let viewController = appDelegate.window?.rootViewController
         let hud = JGProgressHUD()