Skip to content

Commit

Permalink
Merge pull request #450 from Chia-Network/feat--Increase-the-org-crea…
Browse files Browse the repository at this point in the history
…tion-retry-time-every-30-seconds-60-time

feat: increase org creation times to 60 at 30 secs interval
  • Loading branch information
MichaelTaylor3D authored Apr 6, 2022
2 parents fd364e8 + 859a54b commit fdd0077
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/datalayer/syncService.js
Original file line number Diff line number Diff line change
Expand Up @@ -174,11 +174,11 @@ const getSubscribedStoreData = async (
alreadySubscribed = false,
retry = 0,
) => {
if (retry >= 20) {
if (retry >= 60) {
throw new Error('Max retrys exceeded, Can not subscribe to organization');
}

const timeoutInterval = 60000;
const timeoutInterval = 30000;

if (!alreadySubscribed) {
const response = await subscribeToStoreOnDataLayer(storeId, ip, port);
Expand Down
2 changes: 1 addition & 1 deletion src/datalayer/writeService.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ const syncDataLayer = async (storeId, data, failedCallback) => {

const retry = (storeId, changeList, failedCallback, retryAttempts) => {
log('RETRYING...', retryAttempts);
if (retryAttempts >= 10) {
if (retryAttempts >= 60) {
log('Could not push changelist to datalayer after retrying 10 times');
failedCallback();
return;
Expand Down

0 comments on commit fdd0077

Please sign in to comment.