From 273e13f9fc8c6937291025f82d28d00d09e18038 Mon Sep 17 00:00:00 2001 From: Sean Lawlor Date: Tue, 12 Sep 2023 08:17:05 +0100 Subject: [PATCH] Fix monte_carlo example --- ractor/examples/monte_carlo.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ractor/examples/monte_carlo.rs b/ractor/examples/monte_carlo.rs index 75bc5aa6..f8578f34 100644 --- a/ractor/examples/monte_carlo.rs +++ b/ractor/examples/monte_carlo.rs @@ -101,8 +101,7 @@ impl Actor for Game { id: myself.get_id(), results: state.results_vec.clone(), } - ) - .expect("Failed to send message"); + )?; // Because the `GameManager` is monitoring this actor we can stop this actor myself.stop(None); }