From 9cab2384764c12af1f434f2b8e7429c29ef12f83 Mon Sep 17 00:00:00 2001 From: Katia Fredes Date: Thu, 1 Aug 2024 20:06:06 -0400 Subject: [PATCH] docs: add todo and change docs --- src/async_resolver/state_block.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/async_resolver/state_block.rs b/src/async_resolver/state_block.rs index 01677261..aeec0303 100644 --- a/src/async_resolver/state_block.rs +++ b/src/async_resolver/state_block.rs @@ -171,8 +171,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 /// ``` @@ -181,6 +181,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. } } \ No newline at end of file