mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
chore(tasks): comment formatting (#7583)
This commit is contained in:
@ -20,12 +20,11 @@ pub struct TaskExecutorMetrics {
|
||||
|
||||
impl TaskExecutorMetrics {
|
||||
/// Increments the counter for spawned critical tasks.
|
||||
|
||||
pub(crate) fn inc_critical_tasks(&self) {
|
||||
self.critical_tasks.increment(1);
|
||||
}
|
||||
/// Increments the counter for spawned regular tasks.
|
||||
|
||||
/// Increments the counter for spawned regular tasks.
|
||||
pub(crate) fn inc_regular_tasks(&self) {
|
||||
self.regular_tasks.increment(1);
|
||||
}
|
||||
@ -49,7 +48,6 @@ impl IncCounterOnDrop {
|
||||
|
||||
impl Drop for IncCounterOnDrop {
|
||||
/// Increment the counter when the instance is dropped.
|
||||
|
||||
fn drop(&mut self) {
|
||||
self.0.increment(1);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user