Job IDs start at 1, not 2

This commit is contained in:
asonix 2018-12-18 17:11:02 -06:00
parent 2fea1e8e69
commit 94d0fd9a02
No known key found for this signature in database
GPG key ID: 6986797E36BFA1D4

View file

@ -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),
},
};