From bcbd7e6ddf39237a575083bde5aaafacc5f4267b Mon Sep 17 00:00:00 2001 From: Juan Aguilar Santillana Date: Fri, 22 Mar 2019 18:29:12 +0100 Subject: [PATCH] Fix unnecessary arbiter clone at builder rt --- actix-rt/src/builder.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/actix-rt/src/builder.rs b/actix-rt/src/builder.rs index 73bfaa36..49e8c1f5 100644 --- a/actix-rt/src/builder.rs +++ b/actix-rt/src/builder.rs @@ -86,8 +86,7 @@ impl Builder { let (stop_tx, stop) = channel(); let (sys_sender, sys_receiver) = unbounded(); - let arbiter = Arbiter::new_system(); - let system = System::construct(sys_sender, arbiter.clone(), self.stop_on_panic); + let system = System::construct(sys_sender, Arbiter::new_system(), self.stop_on_panic); // system arbiter let arb = SystemArbiter::new(stop_tx, sys_receiver);