Fix some warnings

O01eg
Jul 28, 2022, 8:05 AM
S7A7LHUN2YLV3HEQBHOSYQCRBMDTX6AJ4WTWLKQZY7547LEGFCUQC

Dependencies

  • [2] GVI6M6SC Send ping to custom jid
  • [3] OX5ZPQRF Update tokio to 1.*
  • [4] 3RMEABMU Prepare to add HTTP API to ping cutom jids
  • [5] EVIOKGS2 Don''t break threads and channel after disconnection
  • [6] RNQTHBRI Accept all previous HTTP API
  • [7] VXJOXN2O Update dependencies
  • [8] TGO4TIWU Fix README

Change contents

  • replacement in src/main.rs at line 92
    [4.46646][4.46646:46704]()
    let mut cmd_send = self.cmd_send.clone();
    [4.46646]
    [4.46704]
    let cmd_send = self.cmd_send.clone();
  • replacement in src/main.rs at line 119
    [2.96][2.96:158]()
    let mut cmd_send = self.cmd_send.clone();
    [2.96]
    [2.158]
    let cmd_send = self.cmd_send.clone();
  • replacement in src/main.rs at line 141
    [2.1209][2.1209:1271]()
    let mut cmd_send = self.cmd_send.clone();
    [2.1209]
    [2.1271]
    let cmd_send = self.cmd_send.clone();
  • replacement in src/main.rs at line 168
    [4.1561][4.1561:1619]()
    let mut cmd_send = self.cmd_send.clone();
    [4.1561]
    [4.1619]
    let cmd_send = self.cmd_send.clone();
  • replacement in src/main.rs at line 201
    [4.3280][4.3280:3338]()
    let mut cmd_send = self.cmd_send.clone();
    [4.3280]
    [4.3338]
    let cmd_send = self.cmd_send.clone();
  • replacement in src/main.rs at line 289
    [4.50523][4.50523:50562]()
    tokio::signal::ctrl_c().await;
    [4.50523]
    [4.50562]
    match tokio::signal::ctrl_c().await {
    Err(e) => {
    error!("Stop signal registering failed {}", e);
    return;
    }
    _ => {}
    }
  • replacement in src/main.rs at line 299
    [4.50584][4.50584:50651]()
    let (mut cmd_send, cmd_recv) = tokio::sync::mpsc::channel(10);
    [4.50584]
    [4.50651]
    let (cmd_send, cmd_recv) = tokio::sync::mpsc::channel(10);
  • replacement in src/main.rs at line 319
    [4.51437][4.472:505]()
    cmd_send
    [4.51437]
    [4.505]
    match cmd_send
  • replacement in src/main.rs at line 322
    [4.617][4.617:653](),[4.653][4.51509:51583](),[4.51509][4.51509:51583]()
    .await;
    cmd_send.send(XmppCommand::TimeoutCleanup).await;
    [4.617]
    [4.51583]
    .await
    {
    Err(e) => {
    error!("Cann't send global ping {}", e);
    }
    _ => {}
    }
    match cmd_send.send(XmppCommand::TimeoutCleanup).await {
    Err(e) => {
    error!("Cann't send timeout cleanup {}", e);
    }
    _ => {}
    }
  • replacement in src/main.rs at line 346
    [4.51905][3.1169:1242]()
    let mut ctrt = tokio::runtime::Builder::new_current_thread()
    [4.51905]
    [4.51998]
    let ctrt = tokio::runtime::Builder::new_current_thread()