diff options
author | Alex Auvolat <alex@adnab.me> | 2022-06-29 15:39:54 +0200 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2022-06-29 15:39:54 +0200 |
commit | b95028f89e4db7c3158fab3b71ea56a742daba21 (patch) | |
tree | 262a212c7eec8cf26ec70cbb7d12c2264a1e3da2 /src/main.rs | |
parent | 8b7eb1ca918d26901b0739526341128067ca1cbc (diff) | |
download | aerogramme-b95028f89e4db7c3158fab3b71ea56a742daba21.tar.gz aerogramme-b95028f89e4db7c3158fab3b71ea56a742daba21.zip |
Some refactoring on mailbox structures and views
Diffstat (limited to 'src/main.rs')
-rw-r--r-- | src/main.rs | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/main.rs b/src/main.rs index 401ed53..5d139b6 100644 --- a/src/main.rs +++ b/src/main.rs @@ -14,8 +14,6 @@ use anyhow::{bail, Result}; use clap::{Parser, Subcommand}; use rand::prelude::*; -use rusoto_signature::Region; - use config::*; use cryptoblob::*; use login::{static_provider::*, *}; @@ -264,11 +262,11 @@ async fn main() -> Result<()> { } fn make_storage_creds(c: StorageCredsArgs) -> StorageCredentials { - let s3_region = Region::Custom { + let s3_region = Region { name: c.region.clone(), endpoint: c.s3_endpoint, }; - let k2v_region = Region::Custom { + let k2v_region = Region { name: c.region, endpoint: c.k2v_endpoint, }; |