diff --git a/src/proto/single/ent.rs b/src/proto/single/ent.rs index 600ff75a..3eb11add 100644 --- a/src/proto/single/ent.rs +++ b/src/proto/single/ent.rs @@ -165,7 +165,10 @@ impl Progress { /// /// This will copy the [`desc`](Progress::desc) from the `Progress` (retrieved) over to `ProgressUpdate` (to be sent). pub fn update_percent(&self, percent: u8) -> ProgressUpdate { - set_progress(&self.jid, percent) + ProgressUpdate::builder(&self.jid) + .desc(self.desc.clone()) + .percent(percent) + .build() } /// Create an instance of `ProgressUpdateBuilder` for the job.