Skip to content

Commit

Permalink
Fewer dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
Loudbooks committed Dec 11, 2024
1 parent d7b2e61 commit efd6e0b
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 7 deletions.
18 changes: 18 additions & 0 deletions backend/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 5 additions & 5 deletions backend/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,16 @@ actix-web = "4"
actix-cors = "0.7.0"
mongodb = "3.1.0"
aws-sdk-s3 = { version = "1.65.0" }
tokio = { version = "1", features = ["full"] }
anyhow = "1.0.94"
tokio = { version = "1", features = ["rt"] }
anyhow = { version = "1.0.40", default-features = false }
serde = { version = "1.0.215", features = ["derive"] }
flate2 = "1.0.35"
chrono = "0.4.39"
flate2 = { version = "1.0.19", features = ["zlib"] }
chrono = { version = "0.4.19", features = ["serde"] }
rand = "0.8.5"
log = "0.4.22"
futures-util = "0.3.31"
aws-credential-types = { version = "1.2.1", features = ["hardcoded-credentials"] }
env_logger = "0.11.5"
log = "0.4.22"

[[bin]]
name = "backend"
Expand Down
4 changes: 2 additions & 2 deletions backend/src/delete_service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ use std::sync::Arc;
use std::time::Duration;
use chrono::Utc;
use futures_util::StreamExt;
use log::{error, warn};
use tokio::spawn;
use tokio::time::interval;
use log::{error, warn};
use crate::aws_service::AWSService;
use crate::mongodb_service::MongoService;

Expand Down Expand Up @@ -65,7 +65,7 @@ impl DeleteHandler {
error!("Failed to delete paste from database: {:?}", err);
}
let id = &paste.id;

if let Err(err) = mongo_service.delete_paste(id).await {
error!("Failed to delete paste file: {}", err);
} else {
Expand Down

0 comments on commit efd6e0b

Please sign in to comment.