Skip to content
This repository was archived by the owner on Jul 10, 2025. It is now read-only.

Conversation

coder11
Copy link
Contributor

@coder11 coder11 commented Feb 14, 2023

No description provided.

@coder11 coder11 marked this pull request as draft February 14, 2023 16:33
@coder11 coder11 changed the title WIP feat!: Expose updated JS Client API via js-client.api package Feb 14, 2023
@coder11 coder11 marked this pull request as ready for review February 14, 2023 17:41
@coder11 coder11 requested review from nahsi and shamsartem and removed request for nahsi February 14, 2023 17:42
@@ -67,6 +43,7 @@ export const callFunction = async (rawFnArgs: Array<any>, def: FunctionCallDef,
* Convenience function to support Aqua `service` generation backend
* The compiler only need to generate a call the function and provide the corresponding definitions and the air script
*
(seq
Copy link
Contributor

Choose a reason for hiding this comment

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

accident?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

fixed

*/
export const getDefaultPeer = (): Promise<IFluenceClient> => {
return new Promise((resolve, reject) => {
let interval: NodeJS.Timer | undefined;
Copy link
Contributor

Choose a reason for hiding this comment

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

if it's for frontend that would be a number not NodeJS.Timer. Doesn't reallty affect anything right here but it's more of an issue in general that types should be from Browser environment

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I've decided to remove it whatsoever and added a comment explaining why I don't want to risk any non-necessary types to appear in API

export const getDefaultPeer = (): Promise<IFluenceClient> => {
return new Promise((resolve, reject) => {
let interval: NodeJS.Timer | undefined;
let hits = 50;
Copy link
Contributor

Choose a reason for hiding this comment

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

seems arbitrary. What it depends on? Do you think each lib user will have roughly the same requirements ceiling of 5 seconds loading time?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I've added a couple of comments

Copy link
Contributor

@shamsartem shamsartem left a comment

Choose a reason for hiding this comment

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

Please address my comments before merging

@coder11 coder11 merged commit d4bb8fb into master Feb 15, 2023
@coder11 coder11 deleted the cdn-preparations branch February 15, 2023 00:00
@fluencebot fluencebot mentioned this pull request Feb 15, 2023
@fluencebot fluencebot mentioned this pull request Apr 4, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants