mirror of
https://github.com/fafhrd91/actix-net
synced 2025-01-19 03:44:40 +01:00
Fix unnecessary arbiter clone at builder rt
This commit is contained in:
parent
e0d3581239
commit
bcbd7e6ddf
@ -86,8 +86,7 @@ impl Builder {
|
|||||||
let (stop_tx, stop) = channel();
|
let (stop_tx, stop) = channel();
|
||||||
let (sys_sender, sys_receiver) = unbounded();
|
let (sys_sender, sys_receiver) = unbounded();
|
||||||
|
|
||||||
let arbiter = Arbiter::new_system();
|
let system = System::construct(sys_sender, Arbiter::new_system(), self.stop_on_panic);
|
||||||
let system = System::construct(sys_sender, arbiter.clone(), self.stop_on_panic);
|
|
||||||
|
|
||||||
// system arbiter
|
// system arbiter
|
||||||
let arb = SystemArbiter::new(stop_tx, sys_receiver);
|
let arb = SystemArbiter::new(stop_tx, sys_receiver);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user