Introduce xmpp client
[?]
Oct 28, 2018, 2:10 PM
AXDOLAOAMIKZQMYKXVTMKKOQXLTWOKRONBFSEA4KCBK3DCSDD7ZQCDependencies
- [2]
F5UQL2FBManage xmpp connection in cmd processing loop - [3]
PHPCAQ6ZUse env logger. Implement command loop - [*]
AVBHYHOAStop xmpp thread by shudown
Change contents
- edit in src/xmpp.rs at line 3
use tokio_xmpp::Client; - replacement in src/xmpp.rs at line 9
inner: Option<()>,inner: Option<Client>, - replacement in src/xmpp.rs at line 24
let inner = self.inner.unwrap_or_else(|| ());let XmppConnection {jid,password,inner,} = self;let inner = inner.unwrap_or_else(|| {let mut res_client = Client::new(&jid, &password);while let Err(e) = res_client {error!("Cann't init xmpp client: {}", e);res_client = Client::new(&jid, &password);}let client = res_client.expect("Cann't init xmpp client");info!("xmpp initialized");client}); - replacement in src/xmpp.rs at line 41
jid: self.jid,password: self.password,jid,password,