rocicorp / repc

The canonical Replicache client, implemented in Rust.
Other
30 stars 7 forks source link

we should check invariants before finalizing a sync #224

Open phritz opened 4 years ago

phritz commented 4 years ago

in https://github.com/rocicorp/replicache/issues/30#issue-599410531 i proposed some invariants that we should check during sync to reduce the chances that we have a bug / data corruption. i had planned to do that here https://github.com/rocicorp/replicache-client/blob/8defd6d1ad365de4de3e34b2c5bed2c014ff3408/db/sync.go#L130

phritz commented 4 years ago

replicache-client no longer relevant, but this issue is still a good idea in repc: https://github.com/rocicorp/repc/blob/a5ee7e5caeebdd41205046356853b22dfd0aed56/src/sync/mod.rs#L277