You've already forked AstralRinth
forked from didirus/AstralRinth
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:
@@ -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}")]
|
||||
|
||||
@@ -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(),
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user