Ping and check timeouts in different phases

O01eg
Sep 13, 2022, 10:09 AM
MKEEMMX7H73YQB5OZUPPWXPXHIEWHZPQ7VR4WLA6BUAMPB37GSHQC

Dependencies

Change contents

  • edit in src/main.rs at line 311
    [3.51039]
    [3.51039]
    let mut phase = false;
  • replacement in src/main.rs at line 320
    [3.51437][2.1541:1590](),[3.589][3.505:617](),[2.1590][3.505:617](),[3.505][3.505:617](),[3.617][3.590:651](),[3.651][2.1591:1660](),[2.1660][3.830:856](),[3.830][3.830:856](),[3.856][2.1661:1752]()
    if let Err(e) = cmd_send
    .clone()
    .send(XmppCommand::Ping { opt_xmpp_to: None })
    .await
    {
    error!("Cann't send global ping {}", e);
    }
    if let Err(e) = cmd_send.send(XmppCommand::TimeoutCleanup).await {
    [3.51437]
    [2.1752]
    phase = !phase;
    if phase {
    if let Err(e) = cmd_send
    .clone()
    .send(XmppCommand::Ping { opt_xmpp_to: None })
    .await
    {
    error!("Cann't send global ping {}", e);
    }
    } else if let Err(e) = cmd_send.send(XmppCommand::TimeoutCleanup).await {