From 23838867c22bff99b0b81c3a6f31be2e5a3d4ed4 Mon Sep 17 00:00:00 2001 From: andrussal Date: Sun, 8 Mar 2026 13:26:33 +0100 Subject: [PATCH] Trim node client public surface --- .../core/src/scenario/runtime/node_clients.rs | 26 +------------------ 1 file changed, 1 insertion(+), 25 deletions(-) diff --git a/testing-framework/core/src/scenario/runtime/node_clients.rs b/testing-framework/core/src/scenario/runtime/node_clients.rs index 363e80d..ce31dcf 100644 --- a/testing-framework/core/src/scenario/runtime/node_clients.rs +++ b/testing-framework/core/src/scenario/runtime/node_clients.rs @@ -1,6 +1,6 @@ use rand::{seq::SliceRandom as _, thread_rng}; -use super::inventory::{BorrowedNode, ManagedNode, NodeInventory}; +use super::inventory::NodeInventory; use crate::scenario::{Application, DynError}; /// Collection of API clients for the node set. @@ -79,30 +79,6 @@ impl NodeClients { self.inventory.clear(); } - #[must_use] - /// Returns a cloned snapshot of managed node handles. - pub fn managed_nodes(&self) -> Vec> { - self.inventory.managed_nodes() - } - - #[must_use] - /// Returns a cloned snapshot of borrowed node handles. - pub fn borrowed_nodes(&self) -> Vec> { - self.inventory.borrowed_nodes() - } - - #[must_use] - /// Finds a managed node by canonical identity. - pub fn find_managed(&self, identity: &str) -> Option> { - self.inventory.find_managed(identity) - } - - #[must_use] - /// Finds a borrowed node by canonical identity. - pub fn find_borrowed(&self, identity: &str) -> Option> { - self.inventory.find_borrowed(identity) - } - fn shuffled_snapshot(&self) -> Vec { let mut clients = self.snapshot(); clients.shuffle(&mut thread_rng());