Pulling more than 100 changes at once

[?]
Dec 3, 2020, 4:06 PM
HXEIH4UQ6EX3MAY33JK4WQUE5GUSZ673OX57JKNFXC2N2QLTXKXAC

Dependencies

  • [2] Q45QHPO4 Feedback on network stuff
  • [3] SXEYMYF7 Fixing the bad changes in history (unfortunately, by rebooting).
  • [4] FBXYP7QM Forgot to add remote::http
  • [5] I52XSRUH Massive cleanup, and simplification
  • [6] UDHP4ZVB Fixing SSH asynchronicity issues

Change contents

  • replacement in pijul/src/remote/mod.rs at line 449
    [3.69159][3.715:797](),[3.797][3.11263:11284](),[3.11263][3.11263:11284]()
    self.download_changes(&to_download_, &mut send, &mut change_path_, false)
    .await?;
    [3.69159]
    [3.69754]
    let mut self_ = std::mem::replace(self, RemoteRepo::None);
    let t = tokio::spawn(async move {
    self_
    .download_changes(&to_download_, &mut send, &mut change_path_, false)
    .await?;
    Ok::<_, anyhow::Error>(self_)
    });
  • edit in pijul/src/remote/mod.rs at line 503
    [3.70716]
    [3.70716]
    *self = t.await??;
  • edit in pijul/src/remote/http.rs at line 29
    [3.458]
    [3.1339]
    debug!("downloading {:?}", c);
  • replacement in pijul/src/remote/http.rs at line 32
    [3.639][3.639:694]()
    let mut f = std::fs::File::create(&path)?;
    [3.639]
    [3.694]
    let path_ = path.with_extension("tmp");
    let mut f = std::fs::File::create(&path_)?;
  • edit in pijul/src/remote/http.rs at line 43
    [3.1585]
    [3.953]
    debug!("response {:?}", res);
  • edit in pijul/src/remote/http.rs at line 51
    [3.1215]
    [3.1215]
    debug!("writing {:?}", chunk.len());
  • edit in pijul/src/remote/http.rs at line 54
    [3.1267]
    [2.1366]
    std::fs::rename(&path_, &path_.with_extension("change"))?;