added cache, s3 to taskmanager, ask cache if result is the same, among others
This commit is contained in:
@@ -4,7 +4,7 @@ use aws_config::{BehaviorVersion, Region};
|
||||
use aws_sdk_s3::{Client, Config, config::Credentials};
|
||||
use std::env;
|
||||
|
||||
#[derive(Debug)]
|
||||
#[derive(Clone, Debug)]
|
||||
pub struct S3ClientConfig {
|
||||
pub access_key: String,
|
||||
secret_key: String,
|
||||
@@ -13,8 +13,10 @@ pub struct S3ClientConfig {
|
||||
region: String,
|
||||
}
|
||||
|
||||
#[derive(Clone)]
|
||||
pub struct S3Client {
|
||||
client: Client,
|
||||
pub client_config: S3ClientConfig,
|
||||
}
|
||||
|
||||
impl S3ClientConfig {
|
||||
@@ -68,6 +70,7 @@ impl S3Client {
|
||||
|
||||
Self {
|
||||
client: Client::from_conf(s3_config),
|
||||
client_config: config.clone(),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user