forked from gorb/backend
build: update bunny-api-tokio dependency
This commit is contained in:
parent
b5b68c71ba
commit
6fe1163969
2 changed files with 8 additions and 6 deletions
|
@ -29,7 +29,7 @@ uuid = { version = "1.16", features = ["serde", "v7"] }
|
||||||
random-string = "1.1"
|
random-string = "1.1"
|
||||||
actix-ws = "0.3.0"
|
actix-ws = "0.3.0"
|
||||||
futures-util = "0.3.31"
|
futures-util = "0.3.31"
|
||||||
bunny-api-tokio = "0.2.1"
|
bunny-api-tokio = "0.3.0"
|
||||||
bindet = "0.3.2"
|
bindet = "0.3.2"
|
||||||
deadpool = "0.12"
|
deadpool = "0.12"
|
||||||
diesel = { version = "2.2", features = ["uuid"] }
|
diesel = { version = "2.2", features = ["uuid"] }
|
||||||
|
|
12
src/main.rs
12
src/main.rs
|
@ -63,12 +63,14 @@ async fn main() -> Result<(), Error> {
|
||||||
|
|
||||||
let cache_pool = redis::Client::open(config.cache_database.url())?;
|
let cache_pool = redis::Client::open(config.cache_database.url())?;
|
||||||
|
|
||||||
let mut bunny_cdn = bunny_api_tokio::Client::new(config.bunny.api_key.clone()).await?;
|
let mut bunny_cdn = bunny_api_tokio::Client::new("").await?;
|
||||||
|
|
||||||
bunny_cdn.storage.init(
|
let bunny = config.bunny.clone();
|
||||||
config.bunny.endpoint.clone(),
|
|
||||||
config.bunny.storage_zone.clone(),
|
bunny_cdn
|
||||||
)?;
|
.storage
|
||||||
|
.init(bunny.api_key, bunny.endpoint, bunny.storage_zone)
|
||||||
|
.await?;
|
||||||
|
|
||||||
let database_url = config.database.url();
|
let database_url = config.database.url();
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue