Compare commits
2
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
37d08d54fa
|
||
|
|
08e50b132f
|
@@ -16,6 +16,7 @@ pub async fn load_data(filepath: &str) -> Result<Vec<u8>, std::io::Error> {
|
||||
tokio::fs::read(filepath).await
|
||||
}
|
||||
|
||||
#[derive(Debug)]
|
||||
pub enum Error {
|
||||
Info(String),
|
||||
SError(aws_sdk_s3::operation::put_object::PutObjectError),
|
||||
@@ -41,6 +42,7 @@ impl Labyrinth {
|
||||
let config = aws_config::from_env()
|
||||
.region(region)
|
||||
.credentials_provider(credentials)
|
||||
.endpoint_url(self.config.url.clone())
|
||||
.load()
|
||||
.await;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user