aboutsummaryrefslogtreecommitdiff
path: root/src/login/static_provider.rs
diff options
context:
space:
mode:
authorQuentin Dufour <quentin@deuxfleurs.fr>2023-11-21 09:04:54 +0100
committerQuentin Dufour <quentin@deuxfleurs.fr>2023-11-21 09:04:54 +0100
commitbd6c3464e609dc76e119457ea583af0f08eeabb4 (patch)
tree0d7859feaa93616bb9cd162bb330ed15d34185d6 /src/login/static_provider.rs
parent36f4050a40c3ba7b9637a973063b6b5549a2c208 (diff)
downloadaerogramme-bd6c3464e609dc76e119457ea583af0f08eeabb4.tar.gz
aerogramme-bd6c3464e609dc76e119457ea583af0f08eeabb4.zip
remove old storagecredentials
Diffstat (limited to 'src/login/static_provider.rs')
-rw-r--r--src/login/static_provider.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/login/static_provider.rs b/src/login/static_provider.rs
index df1432f..d013c6f 100644
--- a/src/login/static_provider.rs
+++ b/src/login/static_provider.rs
@@ -106,6 +106,7 @@ impl LoginProvider for StaticLoginProvider {
Some(u) => u,
};
+ /*
let bucket = user
.bucket
.clone()
@@ -120,6 +121,10 @@ impl LoginProvider for StaticLoginProvider {
aws_access_key_id: user.aws_access_key_id.clone(),
aws_secret_access_key: user.aws_secret_access_key.clone(),
bucket,
+ };*/
+ let storage: storage::Builders = match user.storage {
+ StaticStorage::InMemory => X,
+ StaticStorage::Garage => Y,
};
let k2v_client = storage.k2v_client()?;