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

Change notify price schedule interval duration from 400ms to 100ms #104

Merged
merged 1 commit into from
Dec 16, 2023

Conversation

ali-bahjati
Copy link
Collaborator

In the agent code, there are different async actors. There is one actor for getting the prices from the publisher and there is another one to export what is already available to Pythnet/Solana. Some publishers continuously send their updates to agent and they have no problem. However, some publishers wait for a notification from the agent to send their update. The problem with having both at the same frequency is that there is a decent chance that these two intervals don't match with each other and cause occasions on which exporter doesn't have any data or skips one data and it increases the overall latency of our network. This PR changes the notification interval to 100ms to minimize the added latency.

@ali-bahjati ali-bahjati requested a review from jayantk December 16, 2023 00:33
@ali-bahjati ali-bahjati merged commit d4473bf into main Dec 16, 2023
2 checks passed
@ali-bahjati ali-bahjati deleted the ali-bahjati-patch-2 branch December 16, 2023 11:53
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