File tree Expand file tree Collapse file tree 4 files changed +5
-2
lines changed
Expand file tree Collapse file tree 4 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ default: &default
2424 port : <%= db_config[:port] %>
2525 # For details on connection pooling, see Rails configuration guide
2626 # https://guides.rubyonrails.org/configuring.html#database-pooling
27- pool : <%= Sagittarius::Configuration.config[:rails][:threads ] %>
27+ pool : <%= Sagittarius::Configuration.config[:rails][:db][:pool_size ] %>
2828
2929development :
3030 << : *default
Original file line number Diff line number Diff line change 1818 port : 5433
1919 username : sagittarius
2020 password : sagittarius
21+ pool_size : 4
2122 encryption :
2223 primary_key : YzaMv4bXYK84unYIQI4Ms4sV3ucbvWs0
2324 deterministic_key : jgTaxTqzM15ved1S8HdXrqrjfCfF5R0h
Original file line number Diff line number Diff line change @@ -42,6 +42,7 @@ def self.defaults
4242 port : 5433 ,
4343 username : 'sagittarius' ,
4444 password : 'sagittarius' ,
45+ pool_size : 4 ,
4546 encryption : {
4647 primary_key : 'YzaMv4bXYK84unYIQI4Ms4sV3ucbvWs0' ,
4748 deterministic_key : 'jgTaxTqzM15ved1S8HdXrqrjfCfF5R0h' ,
Original file line number Diff line number Diff line change @@ -8,11 +8,12 @@ class Launcher
88 HOST = Sagittarius ::Configuration . config [ :rails ] [ :grpc ] [ :host ]
99
1010 def create_server
11+ # grpc handles interceptors in opposite order. Reversing so we can list them in top-to-bottom order
1112 @server = GRPC ::RpcServer . new ( interceptors : [
1213 Sagittarius ::Middleware ::Grpc ::Context . new ,
1314 Sagittarius ::Middleware ::Grpc ::Logger . new ,
1415 Sagittarius ::Middleware ::Grpc ::Authentication . new
15- ] . reverse ) # grpc handles interceptors in opposite order. Reversing so we can list them in top-to-bottom order
16+ ] . reverse , pool_size : Configuration . config [ :rails ] [ :threads ] )
1617 logger . info ( 'GRPC server created' )
1718
1819 @server . add_http2_port ( HOST , :this_port_is_insecure )
You can’t perform that action at this time.
0 commit comments