Skip to content

Commit

Permalink
feat: cargo +nightly fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
YangNianYi authored Dec 21, 2023
1 parent 4b557ad commit 8de797b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion version.rs
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,10 @@ struct EntryPath {
}

#[instrument(skip(store))]
async fn get_version(State(store): State<reflector::Store<Deployment>>, path: EntryPath) -> impl IntoResponse {
async fn get_version(
State(store): State<reflector::Store<Deployment>>,
path: EntryPath,
) -> impl IntoResponse {
let key = reflector::ObjectRef::new(&path.name).within(&path.namespace);
if let Some(Some(e)) = store.get(&key).map(|d| deployment_to_entry(&d)) {
return Ok(Json(e));
Expand Down

0 comments on commit 8de797b

Please sign in to comment.