Skip to content

Commit

Permalink
Fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
xSke committed Feb 11, 2024
1 parent 5f1e265 commit 3d56dec
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ use std::sync::Arc;
use axum::routing::get;
use thiserror::Error;
use tracing::{error, info};
use crate::db::Stats;
use crate::db::{ImageMeta, Stats};

#[derive(Error, Debug)]
pub enum PKAvatarError {
Expand Down Expand Up @@ -117,7 +117,6 @@ async fn pull(
.map_err(|je| PKAvatarError::InternalError(je.into()))??;

let store_res = state.storer.store(&encoded).await?;

let final_url = format!("{}{}", state.config.base_url, store_res.path);
let is_new = db::add_image(
&state.pool,
Expand Down

0 comments on commit 3d56dec

Please sign in to comment.