1
0

Fix to attached world data (#3618)

* Add AttachedWorldData::remove_for_world

* Box the S3 error for daedelus_client ErrorKind::S3

* Delete attached world data on world deletion
This commit is contained in:
Josiah Glosson
2025-05-06 10:06:46 -05:00
committed by GitHub
parent 8dd32bbe98
commit 2d5d2d5df8
6 changed files with 68 additions and 14 deletions

View File

@@ -22,7 +22,7 @@ pub enum ErrorKind {
Fetch { inner: reqwest::Error, item: String },
#[error("Error while uploading file to S3: {file}")]
S3 {
inner: s3::error::S3Error,
inner: Box<s3::error::S3Error>,
file: String,
},
#[error("Error acquiring semaphore: {0}")]

View File

@@ -78,7 +78,7 @@ pub async fn upload_file_to_bucket(
BUCKET.put_object(key.clone(), &bytes).await
}
.map_err(|err| ErrorKind::S3 {
inner: err,
inner: Box::new(err),
file: path.clone(),
});