File tree Expand file tree Collapse file tree 1 file changed +23
-12
lines changed
packages/common/src/allo/backends Expand file tree Collapse file tree 1 file changed +23
-12
lines changed Original file line number Diff line number Diff line change @@ -780,18 +780,29 @@ export class AlloV2 implements Allo {
780
780
blockNumber : receipt . blockNumber ,
781
781
} ) ;
782
782
783
- // sync pool with checker
784
- await fetch ( "https://api.checker.gitcoin.co/api/pools" , {
785
- method : "POST" ,
786
- headers : {
787
- "Content-Type" : "application/json" ,
788
- } ,
789
- body : JSON . stringify ( {
790
- alloPoolId : args . roundId . toString ( ) ,
791
- chainId : this . chainId ,
792
- skipEvaluation : false ,
793
- } ) ,
794
- } ) ;
783
+ try {
784
+ // Trigger the call to sync pool with checker API without awaiting the result.
785
+ // We don't await here because it's not necessary to block execution or handle the response.
786
+ // This also prevents checker API failures from impacting the rest of the code.
787
+ fetch ( "https://api.checker.gitcoin.co/api/pools" , {
788
+ method : "POST" ,
789
+ headers : {
790
+ "Content-Type" : "application/json" ,
791
+ } ,
792
+ body : JSON . stringify ( {
793
+ alloPoolId : args . roundId . toString ( ) ,
794
+ chainId : this . chainId ,
795
+ skipEvaluation : false ,
796
+ } ) ,
797
+ } ) . catch ( ( error ) => {
798
+ console . error ( "Checker API call failed:" , error ) ;
799
+ } ) ;
800
+ } catch ( error ) {
801
+ console . error (
802
+ "Unexpected error while triggering checker API call:" ,
803
+ error
804
+ ) ;
805
+ }
795
806
796
807
emit ( "indexingStatus" , success ( null ) ) ;
797
808
You can’t perform that action at this time.
0 commit comments