Skip to content

Commit 2ce3d81

Browse files
authored
fix(console): fix task detail view Id to display remote tokio::task::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.
1 parent 426dfcf commit 2ce3d81

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tokio-console/src/view/task.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ impl TaskView {
142142
let mut overview = Vec::with_capacity(8);
143143
overview.push(Spans::from(vec![
144144
bold("ID: "),
145-
Span::raw(format!("{} ", task.id())),
145+
Span::raw(format!("{} ", task.id_str())),
146146
task.state().render(styles),
147147
]));
148148

0 commit comments

Comments
 (0)