From 0dcbb3956e6dcfff9c2bc71333f70535bca0ff06 Mon Sep 17 00:00:00 2001 From: Aiden McClelland Date: Fri, 18 Jun 2021 15:16:33 -0600 Subject: [PATCH] fix off by 1 --- patch-db/src/store.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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,