Skip to content

Commit

Permalink
Rename _inflightRequests by request from PR review
Browse files Browse the repository at this point in the history
  • Loading branch information
bivant committed Jan 16, 2023
1 parent baa344c commit 0c33030
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Sources/SwiftyStoreKit/ProductsInfoController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -49,17 +49,17 @@ class ProductsInfoController: NSObject {
}

// As we can have multiple inflight requests, we store them in a dictionary by product ids
private var _inflightRequests: [Set<String>: InAppProductQuery] = [:]
private var inflightRequestsStorage: [Set<String>: InAppProductQuery] = [:]
private let requestsQueue = DispatchQueue(label: "inflightRequestsQueue", attributes: .concurrent)
private var inflightRequests: [Set<String>: InAppProductQuery] {
get {
requestsQueue.sync {
_inflightRequests
inflightRequestsStorage
}
}
set {
requestsQueue.sync(flags: .barrier) {
self._inflightRequests = newValue
self.inflightRequestsStorage = newValue
}
}
}
Expand Down

0 comments on commit 0c33030

Please sign in to comment.