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

Fix error handling on V1 monitor workers #29

Open
wants to merge 3 commits into
base: master-1.x
Choose a base branch
from

Conversation

patitonar
Copy link

See this comment omni/tokenbridge#78 (comment)

Created branch master-1.x to push fixes for v1 version. Please let me know if we should proceed in a different way.

Removed try/catch sentences on every method call inside a monitor worker that previously catched the error, logged and throw it again. This is to avoid logging the same error multiple times.

Now all errors are handled at the main execution method of the worker by logging it and finishing execution instead of throwing it again. This fixes the issue with UnhandledPromiseRejectionWarning.

Updated package-lock.json so Node.js 10 can be used.

Also fixed error: ReferenceError: GAS_PRICE_FALLBACK is not defined at getGasPrices.

@patitonar patitonar requested a review from akolotov May 30, 2019 18:50
Copy link
Collaborator

@akolotov akolotov left a comment

Choose a reason for hiding this comment

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

@patitonar thanks for rapid work! Is it possible to merge the changes with the monorepo as so we could have one branch of the monitor working for rust and node.js versions of the oracle?

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.

2 participants