File tree Expand file tree Collapse file tree 1 file changed +7
-9
lines changed Expand file tree Collapse file tree 1 file changed +7
-9
lines changed Original file line number Diff line number Diff line change @@ -107,18 +107,16 @@ impl HttpOutput {
107107 }
108108 }
109109
110- pub fn into_fail_result (
110+ pub fn into_err (
111111 self ,
112+ write_log : bool ,
112113 write_telemetry : bool ,
113- write_logs : bool ,
114114 ) -> Result < HttpOkResult , HttpFailResult > {
115- Err ( HttpFailResult {
116- write_telemetry,
117- write_to_log : write_logs,
118- #[ cfg( feature = "with-telemetry" ) ]
119- add_telemetry_tags : my_telemetry:: TelemetryEventTagsBuilder :: new ( ) ,
120- output : self ,
121- } )
115+ Err ( self . into_http_fail_result ( write_log, write_telemetry) )
116+ }
117+
118+ pub fn into_http_fail_result ( self , write_log : bool , write_telemetry : bool ) -> HttpFailResult {
119+ HttpFailResult :: new ( self , write_log, write_telemetry)
122120 }
123121
124122 pub fn as_text < ' s > ( text : impl Into < StrOrString < ' s > > ) -> HttpResultBuilder {
You can’t perform that action at this time.
0 commit comments