mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-11 08:10:10 +00:00
chore: clean up some rust code
This commit is contained in:
parent
c32f199325
commit
05801f6ab9
15 changed files with 63 additions and 207 deletions
|
|
@ -6,10 +6,7 @@ use tracing::{error, info};
|
|||
|
||||
#[libpk::main]
|
||||
async fn main() -> anyhow::Result<()> {
|
||||
let config = libpk::config
|
||||
.avatars
|
||||
.as_ref()
|
||||
.expect("missing avatar service config");
|
||||
let config = libpk::config.avatars();
|
||||
|
||||
let bucket = {
|
||||
let region = s3::Region::Custom {
|
||||
|
|
@ -83,10 +80,7 @@ async fn cleanup_job(pool: sqlx::PgPool, bucket: Arc<s3::Bucket>) -> anyhow::Res
|
|||
}
|
||||
let image_data = image_data.unwrap();
|
||||
|
||||
let config = libpk::config
|
||||
.avatars
|
||||
.as_ref()
|
||||
.expect("missing avatar service config");
|
||||
let config = libpk::config.avatars();
|
||||
|
||||
let path = image_data
|
||||
.url
|
||||
|
|
|
|||
|
|
@ -172,10 +172,7 @@ pub struct AppState {
|
|||
|
||||
#[libpk::main]
|
||||
async fn main() -> anyhow::Result<()> {
|
||||
let config = libpk::config
|
||||
.avatars
|
||||
.as_ref()
|
||||
.expect("missing avatar service config");
|
||||
let config = libpk::config.avatars();
|
||||
|
||||
let bucket = {
|
||||
let region = s3::Region::Custom {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue