From b3f23875738679084a20acc18a1f1ab6fe5dc637 Mon Sep 17 00:00:00 2001 From: casperisfine Date: Fri, 21 Jul 2023 13:16:55 +0000 Subject: [PATCH] Automated change: Fix sanity tests --- src/ruby/ext/grpc/rb_channel.c | 2 +- src/ruby/ext/grpc/rb_grpc.c | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/ruby/ext/grpc/rb_channel.c b/src/ruby/ext/grpc/rb_channel.c index 021c8f1165ac9..4a0557b33e8f8 100644 --- a/src/ruby/ext/grpc/rb_channel.c +++ b/src/ruby/ext/grpc/rb_channel.c @@ -833,7 +833,7 @@ void grpc_rb_channel_polling_thread_start() { &stop_waiting_for_thread_start, wait_until_channel_polling_thread_started_unblocking_func, &stop_waiting_for_thread_start); - } +} void grpc_rb_channel_polling_thread_stop() { if (!RTEST(g_channel_polling_thread)) { diff --git a/src/ruby/ext/grpc/rb_grpc.c b/src/ruby/ext/grpc/rb_grpc.c index 0bde95ac0fb01..8ee9e6af95b14 100644 --- a/src/ruby/ext/grpc/rb_grpc.c +++ b/src/ruby/ext/grpc/rb_grpc.c @@ -23,10 +23,10 @@ #include #include #include +#include #include #include #include -#include #include "rb_call.h" #include "rb_call_credentials.h" @@ -432,7 +432,9 @@ static VALUE grpc_rb_postfork_parent(VALUE self) { "GRPC::prefork"); } if (!grpc_ruby_initial_thread()) { - fprintf(stderr, "grpc_rb_postfork_parent g_init_tid = %ld, current_tid=%ld\n", g_init_tid, sys_gettid()); + fprintf(stderr, + "grpc_rb_postfork_parent g_init_tid = %ld, current_tid=%ld\n", + g_init_tid, sys_gettid()); rb_raise(rb_eRuntimeError, "GRPC.postfork_parent needs to be called from the same thread " "that GRPC.prefork (and fork) was called from");