Skip to content

Commit

Permalink
clipppy
Browse files Browse the repository at this point in the history
Signed-off-by: George Mulhearn <gmulhearn@anonyome.com>
  • Loading branch information
gmulhearn-anonyome committed Jul 5, 2024
1 parent f50a158 commit 405e568
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions aries/agents/aries-vcx-agent/src/handlers/connection.rs
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ impl<T: BaseWallet> ServiceConnections<T> {

/// Process a trust ping and send a pong. Also bump the connection state (ack) if needed.
pub async fn process_trust_ping(&self, ping: Ping, connection_id: &str) -> AgentResult<()> {
let generic_inviter = self.connections.get(&connection_id)?;
let generic_inviter = self.connections.get(connection_id)?;

let inviter: Connection<_, Completed> = match generic_inviter.state() {
ThinState::Inviter(State::Requested) => {
Expand Down Expand Up @@ -215,7 +215,7 @@ impl<T: BaseWallet> ServiceConnections<T> {
}

// update state
self.connections.insert(&connection_id, inviter.into())?;
self.connections.insert(connection_id, inviter.into())?;

Ok(())
}
Expand Down

0 comments on commit 405e568

Please sign in to comment.