Skip to content
This repository has been archived by the owner on Aug 29, 2024. It is now read-only.

Commit

Permalink
Synchronize access to key syncing from cloud change notification (#55)
Browse files Browse the repository at this point in the history
  • Loading branch information
Tunous authored Nov 6, 2021
1 parent d86fe8c commit 1d1c950
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Sources/Zephyr.swift
Original file line number Diff line number Diff line change
Expand Up @@ -458,8 +458,10 @@ extension Zephyr {
return
}

for key in monitoredKeys where cloudKeys.contains(key) {
syncSpecificKeys(keys: [key], dataStore: .remote)
zephyrQueue.sync {
for key in monitoredKeys where cloudKeys.contains(key) {
syncSpecificKeys(keys: [key], dataStore: .remote)
}
}

Zephyr.postNotificationAfterSyncFromCloud()
Expand Down

0 comments on commit 1d1c950

Please sign in to comment.