Skip to content

Commit

Permalink
fix: revert the comment
Browse files Browse the repository at this point in the history
Signed-off-by: Rustin170506 <[email protected]>
  • Loading branch information
Rustin170506 committed Oct 26, 2024
1 parent b7e65ce commit 666487f
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions tokio-console/src/state/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -163,10 +163,6 @@ impl State {
}
}

pub(crate) fn update_state(&mut self, state: proto::instrument::State) {
self.temporality = proto::instrument::Temporality::try_from(state.temporality).unwrap();
}

pub(crate) fn retain_active(&mut self) {
if self.is_paused() {
return;
Expand Down Expand Up @@ -233,6 +229,12 @@ impl State {
*self.current_task_details.borrow_mut() = None;
}

// temporality methods

pub(crate) fn update_state(&mut self, state: proto::instrument::State) {
self.temporality = proto::instrument::Temporality::try_from(state.temporality).unwrap();
}

pub(crate) fn is_paused(&self) -> bool {
matches!(self.temporality, proto::instrument::Temporality::Paused)
}
Expand Down

0 comments on commit 666487f

Please sign in to comment.