Skip to content

Commit

Permalink
fix(console): fix task detail view Id to display remote tokio::task::…
Browse files Browse the repository at this point in the history
…Id (#455)

In #403, the tasks list view was changed to display the `tokio::task::Id` of
the task, instead of the tokio-console generated display ID (which isn't
stable across restarts of the tokio-console itself. However, the task
detail view wasn't updated and was still using the display ID.

This change fixes the ID displayed in the task detail view so that it also
displays the `tokio::task::Id` of the task.
  • Loading branch information
inevity committed Aug 18, 2023
1 parent 426dfcf commit 2ce3d81
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tokio-console/src/view/task.rs
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ impl TaskView {
let mut overview = Vec::with_capacity(8);
overview.push(Spans::from(vec![
bold("ID: "),
Span::raw(format!("{} ", task.id())),
Span::raw(format!("{} ", task.id_str())),
task.state().render(styles),
]));

Expand Down

0 comments on commit 2ce3d81

Please sign in to comment.