Skip to content

Conversation

@phillip-ng
Copy link

Test screenshot

Screen Shot 2023-08-25 at 12 56 12

Copy link

@robertgotitapp robertgotitapp left a comment

Choose a reason for hiding this comment

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

Please read and reply to comment.

import { isEmpty } from './object';
import { MAXIMUM_RETRY_TIME } from '../constants/lib';

let retryTime = 0;

Choose a reason for hiding this comment

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

The retryTime variable is actually shared among different requests. Thus, when the request to this end point is being called 5-10 times in a very short time, these might cause unexpected effects on each other. Please review this scenario

Copy link
Author

Choose a reason for hiding this comment

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

Can you provide me an example? Just make sure to understand what you're mentioning

Copy link

@robertgotitapp robertgotitapp Aug 27, 2023

Choose a reason for hiding this comment

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

For example, what happen if there are 6 requests to giap_javascript at the same time. What would happen?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants