Skip to content

Commit

Permalink
docs: add todo and change docs
Browse files Browse the repository at this point in the history
  • Loading branch information
justRkive authored and FranciscaOrtegaG committed Dec 9, 2024
1 parent 7e03508 commit bded51a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/async_resolver/state_block.rs
Original file line number Diff line number Diff line change
Expand Up @@ -357,8 +357,8 @@ impl StateBlock {
/// Decrements the `request_global_counter` of the request.
///
/// This function should be called each time the resolver performs work on behalf
/// of the request. If the counter reaches zero, the resolver must return a
/// response to the client.
/// of the request. If the counter passes zero, the request is terminated with a
/// temporary error.
///
/// # Example
/// ```
Expand All @@ -367,6 +367,8 @@ impl StateBlock {
/// ```
pub fn decrement_request_global_counter(&mut self) {
self.request_global_counter -= 1;

// TODO: Implement the logic to terminate the request if the counter reaches zero.
}

}

0 comments on commit bded51a

Please sign in to comment.