Skip to content

Commit

Permalink
fix: add queue back to dict
Browse files Browse the repository at this point in the history
  • Loading branch information
FredrikOseberg committed Dec 1, 2023
1 parent ecf5821 commit 1833996
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions Sources/UnleashProxyClientSwift/Poller.swift
Original file line number Diff line number Diff line change
Expand Up @@ -27,21 +27,21 @@ public class DictionaryStorageProvider: StorageProvider {
public init() {}

public func set(value: Toggle?, key: String) {

queue.async {
self.storage[key] = value

}
}

public func value(key: String) -> Toggle? {

queue.sync {
return self.storage[key]

}
}

public func clear() {

queue.sync {
self.storage = [:]

}
}
}

Expand Down

0 comments on commit 1833996

Please sign in to comment.