build: update bunny-api-tokio dependency
All checks were successful
ci/woodpecker/push/build-and-publish Pipeline was successful
All checks were successful
ci/woodpecker/push/build-and-publish Pipeline was successful
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"
|
||||
actix-ws = "0.3.0"
|
||||
futures-util = "0.3.31"
|
||||
bunny-api-tokio = "0.2.1"
|
||||
bunny-api-tokio = "0.3.0"
|
||||
bindet = "0.3.2"
|
||||
deadpool = "0.12"
|
||||
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 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(
|
||||
config.bunny.endpoint.clone(),
|
||||
config.bunny.storage_zone.clone(),
|
||||
)?;
|
||||
let bunny = config.bunny.clone();
|
||||
|
||||
bunny_cdn
|
||||
.storage
|
||||
.init(bunny.api_key, bunny.endpoint, bunny.storage_zone)
|
||||
.await?;
|
||||
|
||||
let database_url = config.database.url();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue