registering timer

This commit is contained in:
Nikolay Volf 2016-03-13 15:11:16 +01:00
parent 735aa8ca17
commit a4f03100e9

View File

@ -445,7 +445,6 @@ impl Configuration {
// Secret Store
let account_service = Arc::new(AccountService::new());
service.io().register_handler(account_service).expect("Error registering IO handler");
// Setup rpc
if self.args.flag_jsonrpc || self.args.flag_rpc {
@ -581,7 +580,8 @@ impl IoHandler<NetSyncMessage> for ClientIoHandler {
fn timeout(&self, _io: &IoContext<NetSyncMessage>, timer: TimerToken) {
match timer {
INFO_TIMER => { self.info.tick(&self.client, &self.sync); }
ACCOUNT_TICK_TIMER => { self.accounts.tick(); }
ACCOUNT_TICK_TIMER => { self.accounts.tick(); },
_ => {}
}
}
}