From 95b57811da42b839d9a2974f0bfe6b619cb63ba2 Mon Sep 17 00:00:00 2001 From: Katia Fredes Date: Thu, 1 Aug 2024 20:07:02 -0400 Subject: [PATCH] style: reorder funcions --- src/async_resolver/state_block.rs | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/src/async_resolver/state_block.rs b/src/async_resolver/state_block.rs index 2b788705..320a38cb 100644 --- a/src/async_resolver/state_block.rs +++ b/src/async_resolver/state_block.rs @@ -45,16 +45,6 @@ impl StateBlock { } } - /// Returns a reference to the `timestamp` of the request. - pub fn get_timestamp(&self) -> &Instant { - return &self.timestamp; - } - - /// Returns a the `request_global_counter` of the request. - pub fn get_request_global_counter(&self) -> u32 { - return self.request_global_counter; - } - /// Decrements the `request_global_counter` of the request. /// /// This function should be called each time the resolver performs work on behalf @@ -72,4 +62,13 @@ impl StateBlock { // TODO: Implement the logic to terminate the request if the counter reaches zero. } + /// Returns a reference to the `timestamp` of the request. + pub fn get_timestamp(&self) -> &Instant { + return &self.timestamp; + } + + /// Returns a the `request_global_counter` of the request. + pub fn get_request_global_counter(&self) -> u32 { + return self.request_global_counter; + } } \ No newline at end of file