mirror of
https://git.asonix.dog/asonix/background-jobs.git
synced 2024-11-22 03:51:00 +00:00
Job IDs start at 1, not 2
This commit is contained in:
parent
2fea1e8e69
commit
94d0fd9a02
1 changed files with 1 additions and 1 deletions
|
@ -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),
|
||||
},
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue