Skip to content

Commit

Permalink
fix(dispatcher): do not use uppercase acronyms
Browse files Browse the repository at this point in the history
  • Loading branch information
marcelstanley committed Jul 31, 2023
1 parent 565afb1 commit 4e63107
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions offchain/dispatcher/src/auth.rs
Original file line number Diff line number Diff line change
Expand Up @@ -58,14 +58,13 @@ pub struct AuthEnvCLIConfig {
}

#[derive(Debug, Clone)]
#[allow(clippy::upper_case_acronyms)]
pub enum AuthConfig {
Mnemonic {
mnemonic: String,
account_index: Option<u32>,
},

AWS {
Aws {
key_id: String,
region: Region,
},
Expand Down Expand Up @@ -95,7 +94,7 @@ impl AuthConfig {
(Some(key_id), Some(region)) => {
let region = Region::from_str(&region)
.context(InvalidRegionSnafu)?;
Ok(AuthConfig::AWS { key_id, region })
Ok(AuthConfig::Aws { key_id, region })
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion offchain/dispatcher/src/signer/signer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ impl ConditionalSigner {
.with_chain_id(chain_id);
Ok(ConditionalSigner::LocalWallet(wallet))
}
AuthConfig::AWS { key_id, region } => {
AuthConfig::Aws { key_id, region } => {
AwsSigner::new(key_id, chain_id, region)
.await
.map(ConditionalSigner::AwsSigner)
Expand Down

0 comments on commit 4e63107

Please sign in to comment.