From 1fed28444d9478a72239f6afabf6f0e860ad5fbd Mon Sep 17 00:00:00 2001 From: Artie Kushner <34076599+rtviii@users.noreply.github.com> Date: Sun, 10 Jul 2022 05:46:36 -0700 Subject: [PATCH] Outdated call signatures for `Arbiter` I found that the old version does not compile given the (new)call signature for `Arbiter::spawn`. --- actix/src/sec-5-arbiter.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/actix/src/sec-5-arbiter.md b/actix/src/sec-5-arbiter.md index 7fd7e55d..a57a90c0 100644 --- a/actix/src/sec-5-arbiter.md +++ b/actix/src/sec-5-arbiter.md @@ -115,7 +115,7 @@ fn main() { }; // Spawn the future onto the current Arbiter/event loop - Arbiter::spawn(execution); + System::current().arbiter().spawn(execution); // We only want to do one computation in this example, so we // shut down the `System` which will stop any Arbiters within