Function
send_progress
(
message: &str,
template: &str,
total: u64,
current: u64,
progress_tx: &mpsc::Sender<Message>,
)
Source from the content-addressed store, hash-verified
| 96 | } |
| 97 | |
| 98 | pub async fn send_progress( |
| 99 | message: &str, |
| 100 | template: &str, |
| 101 | total: u64, |
| 102 | current: u64, |
| 103 | progress_tx: &mpsc::Sender<Message>, |
| 104 | ) { |
| 105 | let progress = ProgressInfo { |
| 106 | message: message.to_string(), |
| 107 | template: template.to_string(), |
| 108 | total: total as u32, |
| 109 | current: current as u32, |
| 110 | ..Default::default() |
| 111 | }; |
| 112 | progress_tx.send(Message::Progress(progress)).await.ok(); |
| 113 | } |
| 114 | |
| 115 | pub async fn execute( |
| 116 | command: PathBuf, |
Tested by
no test coverage detected