Skip to content

Commit 7ba45ac

Browse files
committed
rename hand_shake to handshake
1 parent 96ee1f3 commit 7ba45ac

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

src/config/provider/hashicorp.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ pub struct VaultEndpointConfig {
5353
pub keys: String,
5454

5555
/// HashiCorp Vault API endpoint path to perform a handshake
56-
pub hand_shake: String,
56+
pub handshake: String,
5757

5858
/// HashiCorp Vault API endpoint path to recieve a wrapping key
5959
pub wrapping_key: String,
@@ -66,7 +66,7 @@ impl Default for VaultEndpointConfig {
6666
fn default() -> Self {
6767
VaultEndpointConfig {
6868
keys: "/v1/transit/keys".into(),
69-
hand_shake: "/v1/auth/token/lookup-self".into(),
69+
handshake: "/v1/auth/token/lookup-self".into(),
7070
wrapping_key: "/v1/transit/wrapping_key".into(),
7171
sign: "/v1/transit/sign".into(),
7272
}

src/keyring/providers/hashicorp/client.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,13 +36,13 @@ impl TendermintValidatorApp {
3636
};
3737

3838
debug!("Initialized with Vault host at {}", api_endpoint);
39-
app.hand_shake()?;
39+
app.handshake()?;
4040

4141
Ok(app)
4242
}
4343

44-
fn hand_shake(&self) -> Result<(), Error> {
45-
let _ = self.vault_client.hand_shake();
44+
fn handshake(&self) -> Result<(), Error> {
45+
let _ = self.vault_client.handshake();
4646
Ok(())
4747
}
4848

src/keyring/providers/hashicorp/vault_client.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -312,12 +312,12 @@ impl VaultClient {
312312
Ok(array)
313313
}
314314

315-
pub fn hand_shake(&self) -> Result<(), Error> {
315+
pub fn handshake(&self) -> Result<(), Error> {
316316
let _ = self
317317
.agent
318318
.get(&format!(
319319
"{}{}",
320-
self.api_endpoint, self.endpoints.hand_shake,
320+
self.api_endpoint, self.endpoints.handshake,
321321
))
322322
.set(VAULT_TOKEN, &self.token)
323323
.call()

0 commit comments

Comments
 (0)