Skip to content

Commit 528dc82

Browse files
committed
Don't wait for the heap lock if already taken
1 parent df0e29f commit 528dc82

File tree

4 files changed

+7
-3
lines changed

4 files changed

+7
-3
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
44
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
55
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
66

7+
## [0.1.4] - 2025-08-20
8+
### Fixed
9+
- Don't wait for the heap lock if already taken
10+
711
## [0.1.3] - 2025-08-18
812
### Fixed
913
- Remove deadcode warning when all features are disabled

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ authors = ["killzoner"]
33
edition = "2024"
44
name = "pprof_hyper_server"
55
resolver = "3"
6-
version = "0.1.3"
6+
version = "0.1.4"
77

88
description = "A minimal pprof server implementation using hyper without runtime dependency"
99
documentation = "https://docs.rs/pprof_hyper_server"

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ impl Task<'_> {
130130
match prof_ctl {
131131
None => Err(anyhow::anyhow!("heap profiling not activated")),
132132
Some(prof_ctl) => {
133-
let mut prof_ctl = prof_ctl.lock().await;
133+
let mut prof_ctl = prof_ctl.try_lock()?;
134134

135135
if !prof_ctl.activated() {
136136
return Err(anyhow::anyhow!("heap profiling not activated"));

0 commit comments

Comments
 (0)