File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2272,7 +2272,11 @@ mod online {
22722272 team_ids : Some ( vec ! [ team_id] ) ,
22732273 ..Default :: default ( )
22742274 } ;
2275- client. project_create :: < Project > ( None , input) . await . unwrap ( )
2275+ retry_create ( || {
2276+ let input = input. clone ( ) ;
2277+ async { client. project_create :: < Project > ( None , input) . await }
2278+ } )
2279+ . await
22762280 } ) ;
22772281 let project_id = project. id . as_ref ( ) . unwrap ( ) . to_string ( ) ;
22782282 let _project_guard = ProjectGuard {
@@ -4050,7 +4054,11 @@ mod online {
40504054 priority : Some ( 4 ) ,
40514055 ..Default :: default ( )
40524056 } ;
4053- let entity = client. issue_create :: < Issue > ( input) . await . unwrap ( ) ;
4057+ let entity = retry_create ( || {
4058+ let input = input. clone ( ) ;
4059+ async { client. issue_create :: < Issue > ( input) . await }
4060+ } )
4061+ . await ;
40544062 let issue_id = entity. id . clone ( ) . unwrap ( ) ;
40554063 let branch_name = entity
40564064 . branch_name
You can’t perform that action at this time.
0 commit comments