From 743e31fa3c853aaeac52e9d367c3f3cfad086704 Mon Sep 17 00:00:00 2001 From: andrussal Date: Sun, 8 Mar 2026 13:22:16 +0100 Subject: [PATCH] Hide runner context storage details --- testing-framework/core/src/scenario/runtime/runner.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/testing-framework/core/src/scenario/runtime/runner.rs b/testing-framework/core/src/scenario/runtime/runner.rs index 652d740..16c9002 100644 --- a/testing-framework/core/src/scenario/runtime/runner.rs +++ b/testing-framework/core/src/scenario/runtime/runner.rs @@ -45,8 +45,8 @@ impl Runner { /// Access the underlying run context. #[must_use] - pub fn context(&self) -> Arc> { - Arc::clone(&self.context) + pub fn context(&self) -> &RunContext { + self.context.as_ref() } pub async fn wait_network_ready(&self) -> Result<(), DynError> { @@ -71,7 +71,7 @@ impl Runner { where Caps: Send + Sync, { - let context = self.context(); + let context = Arc::clone(&self.context); let run_duration = scenario.duration(); let workloads = scenario.workloads().to_vec(); let expectation_count = scenario.expectations().len();