From 4ed5477e3133ecba7857c34a5228e47d6ec3f3b4 Mon Sep 17 00:00:00 2001 From: "guillem.cordoba" Date: Thu, 29 Aug 2024 12:46:27 +0200 Subject: [PATCH] Add list-cell-ids --- src/admin_websocket.rs | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/admin_websocket.rs b/src/admin_websocket.rs index 342ab5a..3b16af2 100644 --- a/src/admin_websocket.rs +++ b/src/admin_websocket.rs @@ -226,6 +226,17 @@ impl AdminWebsocket { } } + + pub async fn list_cell_ids( + &self, + ) -> ConductorApiResult> { + 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 { let msg = AdminRequest::GetDnaDefinition(Box::new(hash)); let response = self.send(msg).await?;