Skip to content

Commit

Permalink
fix: add mirror json param
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelTaylor3D committed Aug 19, 2022
1 parent 439a5cc commit 52995a9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/datalayer/persistance.js
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@ const _addMirror = async (storeId, url) => {
url: `${rpcUrl}/add_mirror`,
body: JSON.stringify({
id: storeId,
urls: url,
urls: [url],
amount: 1,
}),
};
Expand Down
4 changes: 4 additions & 0 deletions src/datalayer/syncService.js
Original file line number Diff line number Diff line change
Expand Up @@ -215,8 +215,12 @@ const getSubscribedStoreData = async (
}
}

logger.debug(`Subscription Successful for ${storeId}.`);

if (!USE_SIMULATOR) {
logger.debug(`Getting confirmation for ${storeId}.`);
const storeExistAndIsConfirmed = await dataLayer.getRoot(storeId, true);
logger.debug(`Store exists and is found ${storeId}.`);
if (!storeExistAndIsConfirmed) {
logger.debug(
`Retrying subscribe to ${storeId}, store not yet confirmed.`,
Expand Down

0 comments on commit 52995a9

Please sign in to comment.