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

Relayer Loop #99

Merged
merged 14 commits into from
Mar 10, 2021
Merged

Relayer Loop #99

merged 14 commits into from
Mar 10, 2021

Conversation

ethanfrey
Copy link
Contributor

@ethanfrey ethanfrey commented Mar 10, 2021

Most of #12
Part 1 of #89

  • Implement and test the base logic used in each step of the loop inside Link.
  • Write and test a single-short relayer (add --once flag)

Follow up PR:

  • Have infinite loop in relayer

@ethanfrey ethanfrey marked this pull request as ready for review March 10, 2021 18:57
};

run(options, logger);
await run(options, logger);
Copy link
Contributor

Choose a reason for hiding this comment

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

no need for await here but it doesn't hurt

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 guess not, but if I neither await nor return the Promise, then if the caller tries await, it will not wait for the final promise with the heart of the work.

I guess we don't do it that way here, but it is a habit after a few gotchas with unawaited promises

@ethanfrey ethanfrey merged commit 5ab4938 into main Mar 10, 2021
@ethanfrey ethanfrey deleted the 12-relayer-loop branch March 10, 2021 21:52
@ethanfrey ethanfrey mentioned this pull request Mar 10, 2021
3 tasks
wasmd,
} from './testutils.spec';
} from './testutils';
Copy link
Contributor

Choose a reason for hiding this comment

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

@ethanfrey This filename had a .spec in it to group it with test files, eg so that it's filtered out of the files published to npm.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

When I removed the unit tests there and left it as spec, ava complained (errored).

Maybe just add this file to the npmignore file?

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