]> git.proxmox.com Git - proxmox-backup.git/commitdiff
worker_task: add getter for upid
authorDominik Csapak <d.csapak@proxmox.com>
Fri, 31 Jul 2020 12:43:24 +0000 (14:43 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Mon, 3 Aug 2020 06:26:17 +0000 (08:26 +0200)
sometimes we need the upid inside the worker itself, so give a
possibilty to get it

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
src/server/worker_task.rs

index f6882d13b47dfed50322e5900a5bd901a19e6b69..fdbbacbe616f02c915e33ed0952f201fbb733346 100644 (file)
@@ -589,4 +589,8 @@ impl WorkerTask {
         }
         rx
     }
+
+    pub fn upid(&self) -> &UPID {
+        &self.upid
+    }
 }