Skip to content

Commit d9119d0

Browse files
committed
fix rendering time recording
1 parent 59eea6c commit d9119d0

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/web/rustdoc.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,8 @@ pub(crate) async fn rustdoc_redirector_handler(
187187
.await?
188188
.ok_or(AxumNope::ResourceNotFound)?;
189189

190+
rendering_time.step("fetch from storage");
191+
190192
match spawn_blocking({
191193
let version = version.clone();
192194
let storage = storage.clone();
@@ -492,6 +494,10 @@ pub(crate) async fn rustdoc_html_server_handler(
492494

493495
trace!(?storage_path, ?req_path, "try fetching from storage");
494496

497+
// record the data-fetch step
498+
// until we re-add it below inside `fetch_rustdoc_file`
499+
rendering_time.step("fetch from storage");
500+
495501
// Attempt to load the file from the database
496502
let blob = match spawn_blocking({
497503
let params = params.clone();

0 commit comments

Comments
 (0)