Skip to content

Commit

Permalink
Update CodeExt.swift
Browse files Browse the repository at this point in the history
  • Loading branch information
WindowsMEMZ authored Jan 17, 2024
1 parent 7537536 commit d6835b9
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions DarockBili Watch App/Extension/CodeExt.swift
Original file line number Diff line number Diff line change
Expand Up @@ -144,11 +144,9 @@ public func autoRetryRequestApi(_ url: String, headers: HTTPHeaders?, maxReqCoun
var reqResults = [JSON]()
var forTotal = 0
for i in 1...maxReqCount {
singalReq(url, headers: headers) { respJson, isSuccess in
DarockKit.Network.shared.requestJSON(url, headers: headers) { respJson, _ in
reqResults.append(respJson)
forTotal++
}
DarockKit.Network.shared.requestJSON(url, headers: headers) { respJson, _ in
reqResults.append(respJson)
forTotal++
}
}
while forTotal < maxReqCount { }
Expand Down

0 comments on commit d6835b9

Please sign in to comment.