From 000fbb63e7c5cb9fa522535565d1d74c48df7f8e Mon Sep 17 00:00:00 2001 From: Sean Lawlor Date: Tue, 12 Sep 2023 04:55:50 -0400 Subject: [PATCH] Fix monte_carlo example (#163) --- 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); }