diff --git a/patch-db/src/store.rs b/patch-db/src/store.rs index 418f2f6..84b3567 100644 --- a/patch-db/src/store.rs +++ b/patch-db/src/store.rs @@ -189,8 +189,8 @@ impl Store { // TODO: try to recover. } - let id = self.revision; self.revision += 1; + let id = self.revision; let res = Arc::new(Revision { id, patch,