File tree Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -106,15 +106,17 @@ impl Reporter {
106
106
let ( tx, rx) = tokio:: sync:: mpsc:: unbounded_channel:: <Result <bytes:: Bytes , std:: convert:: Infallible >>( ) ;
107
107
let body = reqwest:: Body :: wrap_stream( UnboundedReceiverStream :: new( rx) ) ;
108
108
109
- let mut req = self . http_client
109
+ let mut req = match self . http_client
110
110
. post( self . config. trace_endpoint. clone( ) )
111
111
. headers( trace_headers. clone( ) )
112
112
. body( body)
113
- . build( )
114
- . unwrap_or_else( |err| {
115
- log:: error!( "failed to build trace request: {:?}" , err) ;
116
- panic!( "Failed to build trace request" ) ;
117
- } ) ;
113
+ . build( ) {
114
+ Ok ( req) => req,
115
+ Err ( err) => {
116
+ log:: error!( "failed to build trace request: {:?}" , err) ;
117
+ continue ;
118
+ }
119
+ } ;
118
120
119
121
if let Err ( err) = self . config. platform_validator. sign_outgoing_request( & mut req) {
120
122
log:: error!( "failed to sign trace request: {:?}" , err) ;
You can’t perform that action at this time.
0 commit comments