Skip to content

Commit 7185793

Browse files
chore(profiling): suggestions from review
1 parent 2176d29 commit 7185793

File tree

1 file changed

+3
-4
lines changed
  • ddtrace/internal/datadog/profiling/stack_v2/echion/echion

1 file changed

+3
-4
lines changed

ddtrace/internal/datadog/profiling/stack_v2/echion/echion/threads.h

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -190,10 +190,9 @@ ThreadInfo::unwind(PyThreadState* tstate)
190190
{
191191
unwind_python_stack(tstate);
192192
if (asyncio_loop) {
193-
auto unwind_tasks_success = unwind_tasks();
194-
if (!unwind_tasks_success) {
195-
// If we fail, that's OK
196-
}
193+
// unwind_tasks returns a [[nodiscard]] Result<void>.
194+
// We cast it to void to ignore failures.
195+
(void)unwind_tasks();
197196
}
198197

199198
// We make the assumption that gevent and asyncio are not mixed

0 commit comments

Comments
 (0)