Skip to content

Commit

Permalink
wrong type.
Browse files Browse the repository at this point in the history
Signed-off-by: gmulhearn <gmulhearn@proton.me>
  • Loading branch information
gmulhearn committed Feb 19, 2023
1 parent 3d2bc36 commit 5c88d6b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions uniffi_aries_vcx/core/src/handlers/connection/connection.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ use crate::{
errors::error::VcxUniFFIResult,
runtime::block_on,
};

use super::ConnectionState;
pub struct Connection {
handler: Mutex<VcxGenericConnection>,
}
Expand All @@ -38,9 +40,9 @@ pub fn create_invitee(profile: Arc<ProfileHolder>, did_doc: AriesDidDoc) -> VcxU
}

impl Connection {
pub fn get_state(&self) -> VcxUniFFIResult<ThinState> {
pub fn get_state(&self) -> VcxUniFFIResult<ConnectionState> {
let handler = self.handler.lock()?;
Ok(handler.state())
Ok(ConnectionState::from(handler.state()))
}

pub fn pairwise_info(&self) -> VcxUniFFIResult<PairwiseInfo> {
Expand Down

0 comments on commit 5c88d6b

Please sign in to comment.