Skip to content

Commit

Permalink
style: reorder funcions
Browse files Browse the repository at this point in the history
  • Loading branch information
justRkive committed Aug 2, 2024
1 parent 2444b6c commit 95b5781
Showing 1 changed file with 9 additions and 10 deletions.
19 changes: 9 additions & 10 deletions src/async_resolver/state_block.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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;
}
}

0 comments on commit 95b5781

Please sign in to comment.