Skip to content

Commit

Permalink
fix: Improve clarity of struct initializer
Browse files Browse the repository at this point in the history
Bug: N/A
Change-Id: I9a48b0a583102ec7bdb0a771e095942a88fde32b
GitOrigin-RevId: 56cd2ac81929690a24edce4d2899a2ad9438df5b
  • Loading branch information
Privacy Sandbox Team authored and copybara-github committed Dec 9, 2024
1 parent ecc2e99 commit 7f1b5aa
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/concurrent/event_engine_executor.cc
Original file line number Diff line number Diff line change
Expand Up @@ -30,16 +30,16 @@ TaskId EventEngineExecutor::RunAfter(const absl::Duration duration,
grpc_event_engine::experimental::EventEngine::TaskHandle task_handle =
event_engine_->RunAfter(ToChronoNanoseconds(duration),
std::move(closure));

return {task_handle.keys[0], task_handle.keys[1]};
return {
.keys = {task_handle.keys[0], task_handle.keys[1]},
};
}

bool EventEngineExecutor::Cancel(TaskId task_id) {
grpc_event_engine::experimental::EventEngine::TaskHandle handle = {
task_id.keys[0],
task_id.keys[1],
};
return event_engine_->Cancel(handle);
return event_engine_->Cancel(
grpc_event_engine::experimental::EventEngine::TaskHandle{
.keys = {task_id.keys[0], task_id.keys[1]},
});
}

} // namespace privacy_sandbox::server_common

0 comments on commit 7f1b5aa

Please sign in to comment.