@@ -199,14 +199,12 @@ impl PeriodicReader {
199199 This occurs when the caller has timed out waiting for the response. If you see this occuring frequently, consider increasing the flush timeout."
200200 ) ;
201201 }
202- } else {
203- if response_sender. send ( true ) . is_err ( ) {
204- otel_info ! (
205- name: "PeriodReader.Flush.ResponseSendError" ,
206- message = "PeriodicReader's flush has completed successfully, but unable to send this info back to caller.
207- This occurs when the caller has timed out waiting for the response. If you see this occuring frequently, consider increasing the flush timeout."
208- ) ;
209- }
202+ } else if response_sender. send ( true ) . is_err ( ) {
203+ otel_info ! (
204+ name: "PeriodReader.Flush.ResponseSendError" ,
205+ message = "PeriodicReader's flush has completed successfully, but unable to send this info back to caller.
206+ This occurs when the caller has timed out waiting for the response. If you see this occuring frequently, consider increasing the flush timeout."
207+ ) ;
210208 }
211209
212210 // Adjust the remaining interval after the flush
@@ -262,14 +260,12 @@ impl PeriodicReader {
262260 This occurs when the caller has timed out waiting for the response. If you see this occuring frequently, consider increasing the shutdown timeout."
263261 ) ;
264262 }
265- } else {
266- if response_sender. send ( true ) . is_err ( ) {
267- otel_info ! (
268- name: "PeriodReaderThreadShutdown.ResponseSendError" ,
269- message = "PeriodicReader completed its shutdown, but unable to send this info back to caller.
270- This occurs when the caller has timed out waiting for the response. If you see this occuring frequently, consider increasing the shutdown timeout."
271- ) ;
272- }
263+ } else if response_sender. send ( true ) . is_err ( ) {
264+ otel_info ! (
265+ name: "PeriodReaderThreadShutdown.ResponseSendError" ,
266+ message = "PeriodicReader completed its shutdown, but unable to send this info back to caller.
267+ This occurs when the caller has timed out waiting for the response. If you see this occuring frequently, consider increasing the shutdown timeout."
268+ ) ;
273269 }
274270
275271 otel_debug ! (
0 commit comments