Skip to content
This repository was archived by the owner on Apr 3, 2023. It is now read-only.

[evm-price-pusher] Make web3 connections more reslient #69

Merged
merged 6 commits into from
Dec 15, 2022

Conversation

ali-behjati
Copy link
Contributor

@ali-behjati ali-behjati commented Nov 16, 2022

If the pusher web3 connection gets dropped then uppon pushing the price it will crash with that error. This PR (1) configures the connection options to be more resilient (reconnect, ...) (2) handles this error explicitly on pushing prices.

This PR will also upgrade web3 packages and adds skipLibCheck to tsconfig.

Update: Added PythContractFactory as suggested. Also changed errors to throw and crash when the error is not handled explicitly. Crashing on unknown behaviors is better than skipping it, because (1) we'll get notified and can investigate (2) a restart might solve the problem.

Also upgrade web3 packages and add skipLibCheck
@ali-behjati ali-behjati requested a review from jayantk November 16, 2022 16:12
@ali-behjati ali-behjati requested a review from jayantk December 15, 2022 11:04
@ali-behjati ali-behjati changed the title [evm-price-pusher]: Make web3 connections more reslient [evm-price-pusher] Make web3 connections more reslient Dec 15, 2022
@ali-behjati ali-behjati merged commit 019a97f into main Dec 15, 2022
@ali-behjati ali-behjati deleted the abehjati/make-price-pusher-more-resillient branch December 15, 2022 15:51
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