Imported Upstream version 1.33.1
[platform/upstream/grpc.git] / test / cpp / microbenchmarks / bm_timer.cc
index 3b0e0e2..1eb9f52 100644 (file)
@@ -46,9 +46,9 @@ static void BM_InitCancelTimer(benchmark::State& state) {
   int i = 0;
   for (auto _ : state) {
     TimerClosure* timer_closure = &timer_closures[i++ % kTimerCount];
-    GRPC_CLOSURE_INIT(
-        &timer_closure->closure, [](void* /*args*/, grpc_error* /*err*/) {},
-        nullptr, grpc_schedule_on_exec_ctx);
+    GRPC_CLOSURE_INIT(&timer_closure->closure,
+                      [](void* /*args*/, grpc_error* /*err*/) {}, nullptr,
+                      grpc_schedule_on_exec_ctx);
     grpc_timer_init(&timer_closure->timer, GRPC_MILLIS_INF_FUTURE,
                     &timer_closure->closure);
     grpc_timer_cancel(&timer_closure->timer);
@@ -75,9 +75,9 @@ static void BM_TimerBatch(benchmark::State& state) {
   for (auto _ : state) {
     for (grpc_millis deadline = start; deadline != end; deadline += increment) {
       TimerClosure* timer_closure = &timer_closures[deadline % kTimerCount];
-      GRPC_CLOSURE_INIT(
-          &timer_closure->closure, [](void* /*args*/, grpc_error* /*err*/) {},
-          nullptr, grpc_schedule_on_exec_ctx);
+      GRPC_CLOSURE_INIT(&timer_closure->closure,
+                        [](void* /*args*/, grpc_error* /*err*/) {}, nullptr,
+                        grpc_schedule_on_exec_ctx);
 
       grpc_timer_init(&timer_closure->timer, deadline, &timer_closure->closure);
     }