tokio-xmpp: remove redundant pin from examples
This commit is contained in:
parent
10f1b3663c
commit
366f2c8349
1 changed files with 1 additions and 2 deletions
|
|
@ -31,13 +31,12 @@ async fn main() {
|
||||||
// Client instance
|
// Client instance
|
||||||
let mut client = Client::new(jid, password);
|
let mut client = Client::new(jid, password);
|
||||||
|
|
||||||
let token = client
|
let mut token = client
|
||||||
.send_iq(
|
.send_iq(
|
||||||
Some(target),
|
Some(target),
|
||||||
IqRequest::Get(DiscoInfoQuery { node: None }.into()),
|
IqRequest::Get(DiscoInfoQuery { node: None }.into()),
|
||||||
)
|
)
|
||||||
.await;
|
.await;
|
||||||
tokio::pin!(token);
|
|
||||||
|
|
||||||
// Main loop, processes events
|
// Main loop, processes events
|
||||||
loop {
|
loop {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue