File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 11use  std:: sync:: Arc ; 
22
33use  clap:: { crate_description,  crate_version,  Parser } ; 
4- use  futures:: StreamExt ; 
4+ use  futures:: { pin_mut ,   StreamExt } ; 
55use  stackable_operator:: { 
66    cli:: { Command ,  ProductOperatorRun } , 
77    commons:: authentication:: AuthenticationClass , 
@@ -231,9 +231,9 @@ async fn main() -> anyhow::Result<()> {
231231                    } , 
232232                ) ; 
233233
234-             // Let's run them in parallel instead of only concurrently 
235-             tokio:: spawn ( druid_connection_controller ) ; 
236-             superset_controller. await ; 
234+             pin_mut ! ( superset_controller ,  druid_connection_controller ) ; 
235+             // kube-runtime's Controller will  tokio::spawn each reconciliation, so this only concerns the internal watch machinery 
236+             futures :: future :: select ( superset_controller,  druid_connection_controller ) . await ; 
237237        } 
238238    } 
239239
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments