bigcommerce / gruf

gRPC Ruby Framework
https://github.com/bigcommerce/gruf
MIT License
626 stars 73 forks source link

Fix deprecation warning in rails `ConnectionReset` #211

Open heka1024 opened 2 months ago

heka1024 commented 2 months ago

What? Why?

I saw this deprecation warning in our codebase.

DEPRECATION WARNING: `clear_active_connections!` currently only applies to connection pools in the current role (`writing`). In Rails 7.2, this method will apply to all known pools, regardless of role. To affect only those connections belonging to a specific role, pass the role name as an argument. To switch to the new behavior, pass `:all` as the role name.

How was it tested?