Skip to content

Conversation

@ali-behjati
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-behjati ali-behjati requested a review from jayantk December 16, 2023 00:33
@ali-behjati ali-behjati merged commit d4473bf into main Dec 16, 2023
@ali-behjati ali-behjati 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.

3 participants