mirror of
https://git.asonix.dog/asonix/background-jobs.git
synced 2024-11-27 14:30:59 +00:00
postgres-example: update usage
This commit is contained in:
parent
42bc58bc94
commit
b0beaad10a
1 changed files with 5 additions and 2 deletions
|
@ -32,8 +32,11 @@ async fn main() -> anyhow::Result<()> {
|
||||||
.init();
|
.init();
|
||||||
|
|
||||||
// Set up our Storage
|
// Set up our Storage
|
||||||
let storage =
|
let storage = Storage::connect(
|
||||||
Storage::connect("postgres://postgres:postgres@localhost:5432/db".parse()?).await?;
|
"postgres://postgres:postgres@localhost:5432/db".parse()?,
|
||||||
|
None,
|
||||||
|
)
|
||||||
|
.await?;
|
||||||
|
|
||||||
let arbiter = Arbiter::new();
|
let arbiter = Arbiter::new();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue