File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -247,12 +247,14 @@ impl GithubClient {
247247 // Keep track of which PR number belongs to which repository
248248 let mut pr_map: HashMap < String , u64 > = HashMap :: new ( ) ;
249249 let mut errors: Vec < ( String , GitError ) > = Vec :: new ( ) ;
250- while let Some ( Some ( ( repo, result) ) ) = futures. next ( ) . await {
251- match result {
252- Ok ( pr_number) => {
253- pr_map. insert ( repo. to_string ( ) , pr_number) ;
250+ while let Some ( res) = futures. next ( ) . await {
251+ if let Some ( ( repo, result) ) = res {
252+ match result {
253+ Ok ( pr_number) => {
254+ pr_map. insert ( repo. to_string ( ) , pr_number) ;
255+ }
256+ Err ( e) => errors. push ( ( repo. to_string ( ) , e) ) ,
254257 }
255- Err ( e) => errors. push ( ( repo. to_string ( ) , e) ) ,
256258 }
257259 }
258260 if !errors. is_empty ( ) {
You can’t perform that action at this time.
0 commit comments