revert to try!

This commit is contained in:
keorn 2016-11-14 18:25:42 +00:00
parent ae5ae765a6
commit 9d46401626

View File

@ -99,13 +99,13 @@ impl AuthorityRound {
params: params, params: params,
our_params: our_params, our_params: our_params,
builtins: builtins, builtins: builtins,
transistion_service: IoService::<BlockArrived>::start()?, transistion_service: try!(IoService::<BlockArrived>::start()),
message_channel: Mutex::new(None), message_channel: Mutex::new(None),
step: AtomicUsize::new(initial_step), step: AtomicUsize::new(initial_step),
proposed: AtomicBool::new(false) proposed: AtomicBool::new(false)
}); });
let handler = TransitionHandler { engine: Arc::downgrade(&engine) }; let handler = TransitionHandler { engine: Arc::downgrade(&engine) };
engine.transistion_service.register_handler(Arc::new(handler))?; try!(engine.transistion_service.register_handler(Arc::new(handler)));
Ok(engine) Ok(engine)
} }