Skip to content

Commit

Permalink
feature gate && fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
rob-maron committed Jun 10, 2024
1 parent 3457c47 commit f25e6a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cdn-proto/src/connection/middleware/pool.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ impl MemoryPool {
pub async fn alloc(&self, n: u32) -> Result<AllocationPermit> {
// Acquire many permits to the underlying semaphore
let permit = self.0.clone().acquire_many_owned(n).await?;

#[cfg(feature = "metrics")]
return Ok(AllocationPermit(permit, Instant::now()));
#[cfg(not(feature = "metrics"))]
Expand Down

0 comments on commit f25e6a3

Please sign in to comment.