File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -158,7 +158,7 @@ anymap = "0.12"
158158arrayvec = " 0.7.2"
159159async-stream = " 0.3.6"
160160async-trait = " 0.1.68"
161- axum = { version = " 0.7" , features = [" tracing" ] }
161+ axum = { version = " 0.7" , features = [" tracing" , " http2 " ] }
162162axum-extra = { version = " 0.9" , features = [" typed-header" ] }
163163backtrace = " 0.3.66"
164164base64 = " 0.21.2"
Original file line number Diff line number Diff line change @@ -68,12 +68,16 @@ pub struct ReplicaContext {
6868
6969impl ReplicaContext {
7070 /// Build a warmed `reqwest::Client` from `config`.
71+ ///
72+ /// Uses HTTP/2 prior knowledge (h2c) for all connections.
73+ /// The server must be configured to accept h2c (HTTP/2 cleartext) connections.
7174 pub fn new_call_reducer_client ( config : & CallReducerOnDbConfig ) -> reqwest:: Client {
7275 reqwest:: Client :: builder ( )
7376 . tcp_keepalive ( config. tcp_keepalive )
7477 . pool_idle_timeout ( config. pool_idle_timeout )
7578 . pool_max_idle_per_host ( config. pool_max_idle_per_host )
7679 . timeout ( config. request_timeout )
80+ . http2_prior_knowledge ( )
7781 . build ( )
7882 . expect ( "failed to build call_reducer_on_db HTTP client" )
7983 }
You can’t perform that action at this time.
0 commit comments