From 94d0fd9a022c2f46625b7b3e06e3c57d534491f8 Mon Sep 17 00:00:00 2001 From: asonix Date: Tue, 18 Dec 2018 17:11:02 -0600 Subject: [PATCH] Job IDs start at 1, not 2 --- jobs-core/src/storage.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jobs-core/src/storage.rs b/jobs-core/src/storage.rs index 47ebb73..a3b49cb 100644 --- a/jobs-core/src/storage.rs +++ b/jobs-core/src/storage.rs @@ -114,7 +114,7 @@ impl Storage { let id = match txn.get(&bucket, b"current-id") { Ok(id) => id.inner()?.to_serde(), Err(e) => match e { - Error::NotFound => 1, + Error::NotFound => 0, _ => return Err(e), }, };