Skip to content

Commit

Permalink
Use new CDSI connection code
Browse files Browse the repository at this point in the history
  • Loading branch information
akonradi-signal authored Jan 17, 2025
1 parent 86c0ffe commit c82fbe8
Showing 1 changed file with 0 additions and 24 deletions.
24 changes: 0 additions & 24 deletions rust/bridge/shared/types/src/net/cdsi.rs
Original file line number Diff line number Diff line change
Expand Up @@ -56,30 +56,6 @@ impl CdsiLookup {
connection_manager: &ConnectionManager,
auth: Auth,
request: cdsi::LookupRequest,
) -> Result<Self, cdsi::LookupError> {
let transport_connector = connection_manager
.transport_connector
.lock()
.expect("not poisoned")
.clone();
let endpoints = connection_manager
.endpoints
.lock()
.expect("not poisoned")
.clone();
let connected = CdsiConnection::connect(&endpoints.cdsi, transport_connector, auth).await?;
let (token, remaining_response) = connected.send_request(request).await?;

Ok(CdsiLookup {
token,
remaining: std::sync::Mutex::new(Some(remaining_response)),
})
}

pub async fn new_routes(
connection_manager: &ConnectionManager,
auth: Auth,
request: cdsi::LookupRequest,
) -> Result<Self, cdsi::LookupError> {
let ConnectionManager {
env,
Expand Down

0 comments on commit c82fbe8

Please sign in to comment.