Skip to content

Commit

Permalink
Minor fix to retrieving staged model
Browse files Browse the repository at this point in the history
Signed-off-by: aish-where-ya <[email protected]>
  • Loading branch information
aish-where-ya committed Oct 18, 2023
1 parent 58a3be1 commit 33b4f75
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/server/handlers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -533,6 +533,7 @@ impl<P: Publisher> Handler<P> {
};

let staged_model = match req.version.clone() {
Some(v) if v == LATEST_VERSION => manifests.get_current(),
Some(v) => {
if let Some(model) = manifests.get_version(&v) {
model
Expand Down

0 comments on commit 33b4f75

Please sign in to comment.