Skip to content

Commit df4264f

Browse files
committed
Remove unneeded connection creation in status page
1 parent 8e52da5 commit df4264f

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

site/src/request_handlers/status_page.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,7 @@ pub async fn handle_status_page(ctxt: Arc<SiteCtxt>) -> status::Response {
3434
};
3535

3636
let errors = if let Some(last) = &last_commit {
37-
ctxt.conn()
38-
.await
39-
.get_error(ArtifactId::from(last.clone()).lookup(&idx).unwrap())
37+
conn.get_error(ArtifactId::from(last.clone()).lookup(&idx).unwrap())
4038
.await
4139
} else {
4240
Default::default()

0 commit comments

Comments
 (0)