Skip to content

Commit

Permalink
Use promise.any for first 200 response from daemon apis
Browse files Browse the repository at this point in the history
  • Loading branch information
MorningLightMountain713 committed Feb 9, 2025
1 parent bae2e1a commit ff0f964
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ZelBack/src/services/fluxService.js
Original file line number Diff line number Diff line change
Expand Up @@ -1654,7 +1654,7 @@ async function streamChainPreparation(req, res) {
return;
}

const explorerResponse = await Promise.race([
const explorerResponse = await Promise.any([
serviceHelper.axiosGet(urlExplorerA, axiosConfig),
serviceHelper.axiosGet(urlExplorerB, axiosConfig),
]).catch(() => null);
Expand Down

0 comments on commit ff0f964

Please sign in to comment.