Pulling more than 100 changes at once
[?]
Dec 3, 2020, 4:06 PM
HXEIH4UQ6EX3MAY33JK4WQUE5GUSZ673OX57JKNFXC2N2QLTXKXACDependencies
- [2]
Q45QHPO4Feedback on network stuff - [3]
FBXYP7QMForgot to add remote::http - [4]
I52XSRUHMassive cleanup, and simplification - [5]
SXEYMYF7Fixing the bad changes in history (unfortunately, by rebooting). - [6]
UDHP4ZVBFixing SSH asynchronicity issues
Change contents
- replacement in pijul/src/remote/mod.rs at line 449
self.download_changes(&to_download_, &mut send, &mut change_path_, false).await?;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
*self = t.await??; - edit in pijul/src/remote/http.rs at line 29
debug!("downloading {:?}", c); - replacement in pijul/src/remote/http.rs at line 32
let mut f = std::fs::File::create(&path)?;let path_ = path.with_extension("tmp");let mut f = std::fs::File::create(&path_)?; - edit in pijul/src/remote/http.rs at line 43
debug!("response {:?}", res); - edit in pijul/src/remote/http.rs at line 51
debug!("writing {:?}", chunk.len()); - edit in pijul/src/remote/http.rs at line 54
std::fs::rename(&path_, &path_.with_extension("change"))?;