PolymerLabs / arcs

Arcs
BSD 3-Clause "New" or "Revised" License
56 stars 35 forks source link

Fix write-only storage stack lifecycle. #7108

Closed copybara-service[bot] closed 3 years ago

copybara-service[bot] commented 3 years ago

Fix write-only storage stack lifecycle.

Fixes two problems: 1) Only Database should get WriteOnly stack (not RamDisk/Volatile) 2) StorageEvent.READY no longer immediately delivered, but dispatched after maybeInitiateSync() 3) #2 exposed a slight concurrency issue, so added a toSet() call when iterating a set