Skip to content

Commit

Permalink
Dont mv out of arrayPtr in sendTracesToExportedHandler
Browse files Browse the repository at this point in the history
  • Loading branch information
danlapid committed Jan 6, 2025
1 parent a88f555 commit 80f2d8f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/workerd/api/trace.c++
Original file line number Diff line number Diff line change
Expand Up @@ -659,7 +659,7 @@ kj::Promise<void> sendTracesToExportedHandler(kj::Own<IoContext::IncomingRequest
auto nonEmptyTraces = kj::Vector<kj::Own<Trace>>(kj::size(traces));
for (auto& trace: traces) {
if (trace->eventInfo != kj::none) {
nonEmptyTraces.add(kj::mv(trace));
nonEmptyTraces.add(kj::addRef(*trace));
}
}

Expand Down

0 comments on commit 80f2d8f

Please sign in to comment.