chiark
/
gitweb
/
~ianmdlvl
/
otter.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b2623d8
)
bundles: A todo
author
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Sun, 16 May 2021 21:49:22 +0000
(22:49 +0100)
committer
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Mon, 17 May 2021 13:58:58 +0000
(14:58 +0100)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
src/bundles.rs
patch
|
blob
|
history
diff --git
a/src/bundles.rs
b/src/bundles.rs
index f05b9f89e5c1978bae7654aa111caf930497ec3d..9772f10f5864461904d57dc64ef82a6f65e2efa0 100644
(file)
--- a/
src/bundles.rs
+++ b/
src/bundles.rs
@@
-817,6
+817,7
@@
impl InstanceBundles {
#[throws(MgmtError)]
pub fn start_upload(&mut self, ig: &mut Instance, kind: Kind)
-> Uploading {
+ // todo: if bundle hash is here already, simply promote it
let state = State::Uploading;
let slot = Some(Note { kind, state });
let index = self.bundles.len();