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
|
tokio::fs::read(filepath).await
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[derive(Debug)]
|
||||||
pub enum Error {
|
pub enum Error {
|
||||||
Info(String),
|
Info(String),
|
||||||
SError(aws_sdk_s3::operation::put_object::PutObjectError),
|
SError(aws_sdk_s3::operation::put_object::PutObjectError),
|
||||||
@@ -41,6 +42,7 @@ impl Labyrinth {
|
|||||||
let config = aws_config::from_env()
|
let config = aws_config::from_env()
|
||||||
.region(region)
|
.region(region)
|
||||||
.credentials_provider(credentials)
|
.credentials_provider(credentials)
|
||||||
|
.endpoint_url(self.config.url.clone())
|
||||||
.load()
|
.load()
|
||||||
.await;
|
.await;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user