mirror of
https://git.asonix.dog/asonix/background-jobs.git
synced 2024-11-22 12:00:59 +00:00
Update readme
This commit is contained in:
parent
9c8a8dcfc9
commit
85ae1369d0
1 changed files with 2 additions and 2 deletions
|
@ -19,7 +19,7 @@ failure = "0.1"
|
||||||
futures = "0.1"
|
futures = "0.1"
|
||||||
serde = "1.0"
|
serde = "1.0"
|
||||||
serde_drive = "1.0"
|
serde_drive = "1.0"
|
||||||
sled = "0.24"
|
sled-extensions = "0.1"
|
||||||
```
|
```
|
||||||
|
|
||||||
#### To get started with Background Jobs, first you should define a job.
|
#### To get started with Background Jobs, first you should define a job.
|
||||||
|
@ -164,7 +164,7 @@ fn main() -> Result<(), Error> {
|
||||||
// Optionally, a storage backend using the Sled database is provided
|
// Optionally, a storage backend using the Sled database is provided
|
||||||
use sled::Db;
|
use sled::Db;
|
||||||
use background_jobs::sled_storage::Storage;
|
use background_jobs::sled_storage::Storage;
|
||||||
let db = Db::start_default("my-sled-db")?;
|
let db = Db::open("my-sled-db")?;
|
||||||
let storage = Storage::new(db)?;
|
let storage = Storage::new(db)?;
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue