mirror of
https://github.com/paradigmxyz/reth.git
synced 2026-01-28 08:37:59 -05:00
chore: add TracingCallGuard::aquire-many (#3021)
This commit is contained in:
@@ -18,4 +18,9 @@ impl TracingCallGuard {
|
||||
pub async fn acquire_owned(self) -> Result<OwnedSemaphorePermit, AcquireError> {
|
||||
self.0.acquire_owned().await
|
||||
}
|
||||
|
||||
/// See also [Semaphore::acquire_many_owned]
|
||||
pub async fn acquire_many_owned(self, n: u32) -> Result<OwnedSemaphorePermit, AcquireError> {
|
||||
self.0.acquire_many_owned(n).await
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user