File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed
Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -107,7 +107,6 @@ impl CustomToolClient {
107107 }
108108
109109 pub fn assign_messenger ( & mut self , messenger : Box < dyn Messenger > ) {
110- tracing:: error!( "## background: assigned {} with messenger" , self . get_server_name( ) ) ;
111110 match self {
112111 CustomToolClient :: Stdio { client, .. } => {
113112 client. messenger = Some ( messenger) ;
Original file line number Diff line number Diff line change @@ -162,7 +162,9 @@ impl TelemetryThread {
162162 pub async fn finish ( self ) -> Result < ( ) , TelemetryError > {
163163 drop ( self . tx ) ;
164164 if let Some ( handle) = self . handle {
165- let _ = tokio:: time:: timeout ( std:: time:: Duration :: from_millis ( 100 ) , handle) . await ;
165+ if let Err ( e) = tokio:: time:: timeout ( std:: time:: Duration :: from_millis ( 1000 ) , handle) . await {
166+ return Err ( TelemetryError :: Timeout ( e) ) ;
167+ }
166168 }
167169
168170 Ok ( ( ) )
You can’t perform that action at this time.
0 commit comments