Skip to content

Commit

Permalink
Add list-cell-ids
Browse files Browse the repository at this point in the history
  • Loading branch information
guillemcordoba authored and jost-s committed Aug 30, 2024
1 parent ea3462f commit 4ed5477
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/admin_websocket.rs
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,17 @@ impl AdminWebsocket {
}
}


pub async fn list_cell_ids(
&self,
) -> ConductorApiResult<Vec<CellId>> {
let response = self.send(AdminRequest::ListCellIds).await?;
match response {
AdminResponse::CellIdsListed(cell_ids) => Ok(cell_ids),
_ => unreachable!("Unexpected response {:?}", response),
}
}

pub async fn get_dna_definition(&self, hash: DnaHash) -> ConductorApiResult<DnaDef> {
let msg = AdminRequest::GetDnaDefinition(Box::new(hash));
let response = self.send(msg).await?;
Expand Down

0 comments on commit 4ed5477

Please sign in to comment.