Class: Griffin::Interceptors::Server::ClearConnectionInterceptor

Inherits:
GRPC::ServerInterceptor
  • Object
show all
Defined in:
lib/griffin/interceptors/server/clear_connection_interceptor.rb

Instance Method Summary collapse

Instance Method Details

#request_responseObject Also known as: server_streamer, client_streamer, bidi_streamer



7
8
9
10
11
12
13
# File 'lib/griffin/interceptors/server/clear_connection_interceptor.rb', line 7

def request_response(*)
  Rails.application.executor.wrap do
    ActiveRecord::Base.connection_pool.with_connection do
      yield
    end
  end
end