Class: Griffin::Interceptors::Server::ClearConnectionInterceptor
- Inherits:
-
GRPC::ServerInterceptor
- Object
- GRPC::ServerInterceptor
- Griffin::Interceptors::Server::ClearConnectionInterceptor
- Defined in:
- lib/griffin/interceptors/server/clear_connection_interceptor.rb
Instance Method Summary collapse
- #request_response ⇒ Object (also: #server_streamer, #client_streamer, #bidi_streamer)
Instance Method Details
#request_response ⇒ Object 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 |