Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

concurrent importshare test #125

Open
wants to merge 9 commits into
base: feat/atomic-share-import
Choose a base branch
from

Conversation

lwin-kyaw
Copy link
Contributor

add two new unittests for importShare request

  • subsequent requests
  • concurrent requests
  • rebased with master branch

@lwin-kyaw lwin-kyaw changed the title Feat/atomic share import rebased concurrent importshare test Jan 30, 2024
@@ -151,7 +151,7 @@ export async function retrieveOrImportShare(params: {
verifierId: verifierParams.verifier_id,
network,
clientId,
enable_gating: "true",
enableGating: "true",

Choose a reason for hiding this comment

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

Suggested change
enableGating: "true",
enablegating: "true",

this.enableOneKey = enableOneKey;
this.legacyMetadataHost = legacyMetadataHost;
this.legacyMetadataHost = legacyMetadataHost || METADATA_MAP[network as TORUS_LEGACY_NETWORK_TYPE];

Choose a reason for hiding this comment

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

Bug here, what if in parameters, network is sapphire and this is nil?

};
});

const outputs = await Promise.all(

Choose a reason for hiding this comment

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

I think this still ultimately resolves sequentially, not so?

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.

None yet

3 participants