Skip to content

Replaces duplicate promises with original promises in the queue #9

Merged
paras-fundwave merged 19 commits intomainfrom
replace-duplicate-promise-ref
Nov 20, 2024
Merged

Replaces duplicate promises with original promises in the queue #9
paras-fundwave merged 19 commits intomainfrom
replace-duplicate-promise-ref

Conversation

@hemant-fundwave
Copy link
Contributor

@hemant-fundwave hemant-fundwave commented Nov 11, 2024

Description

Avoiding duplicate fetch calls (with same URL and payload) by replacing duplicate promise with original promise in the queue

  • Refactored queue data-type from Array to Map with key as stringified JSON of URL, payload and method of the fetch call.

Resolutions

Depends on

NA

Deployment

Current pipelines will suffice

Copy link

@Srinivasan-tm Srinivasan-tm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@hemant-fundwave hemant-fundwave self-assigned this Nov 12, 2024
@hemant-fundwave hemant-fundwave added the enhancement New feature or request label Nov 12, 2024
@hemant-fundwave hemant-fundwave linked an issue Nov 12, 2024 that may be closed by this pull request
paras-fundwave
paras-fundwave previously approved these changes Nov 20, 2024
Copy link
Collaborator

@paras-fundwave paras-fundwave left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@paras-fundwave paras-fundwave merged commit 2e9d70d into main Nov 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Merge the duplicate fetch promise to the original fetch promise

4 participants