Skip to content

Commit

Permalink
Use spawn_blocking for dropping/flushing telemetry
Browse files Browse the repository at this point in the history
  • Loading branch information
bgw committed Jun 24, 2024
1 parent 1005450 commit e7c0c1f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/next-swc/crates/napi/src/next_api/project.rs
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@ pub async fn project_new(
let subscriber = subscriber.with(RawTraceLayer::new(trace_writer));

exit.on_exit(async move {
drop(trace_writer_guard);
tokio::task::spawn_blocking(move || drop(trace_writer_guard));
});

let trace_server = std::env::var("NEXT_TURBOPACK_TRACE_SERVER").ok();
Expand Down

0 comments on commit e7c0c1f

Please sign in to comment.