Fix uploading (#305)

* Upgrade rust-s3 to fix tokio panics

* Run fmt

* Update deps
This commit is contained in:
Geometrically
2022-02-20 20:16:32 -07:00
committed by GitHub
parent 3ee144459f
commit 9492363b22
6 changed files with 416 additions and 812 deletions

View File

@@ -8,8 +8,6 @@ mod s3_host;
pub use backblaze::BackblazeHost;
use bytes::Bytes;
pub use mock::MockHost;
use s3::creds::AwsCredsError;
use s3::S3Error;
pub use s3_host::S3Host;
#[derive(Error, Debug)]
@@ -19,9 +17,7 @@ pub enum FileHostingError {
#[error("Backblaze error: {0}")]
BackblazeError(serde_json::Value),
#[error("S3 error: {0}")]
S3Error(#[from] S3Error),
#[error("S3 Authentication error: {0}")]
S3CredentialsError(#[from] AwsCredsError),
S3Error(String),
#[error("File system error in file hosting: {0}")]
FileSystemError(#[from] std::io::Error),
#[error("Invalid Filename")]