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: fire and forget update tx #102

Merged
merged 1 commit into from
Dec 15, 2023
Merged

Conversation

ali-bahjati
Copy link
Collaborator

@ali-bahjati ali-bahjati commented Dec 14, 2023

The old behaviour causes the exporter not to publish prices regularly. This change spawns a separate thread to unblock the exporter loop on the rpc send_tx call. Also, because of the batch staggering behaviour to avoid calling rpc for all batches at the same time, the old approach would always resulted in waiting longer than the publishing period.

src/agent/solana/exporter.rs Outdated Show resolved Hide resolved
@ali-bahjati ali-bahjati force-pushed the fix/fire-and-forget-updates branch from d8a290b to 6872b52 Compare December 14, 2023 21:58
@ali-bahjati ali-bahjati marked this pull request as draft December 14, 2023 22:00
The old behaviour causes the exporter not to publishing prices
regularly. This change spawns a separate thread to unblock the exporter
loop. Also, because of the batch staggering behaviour to avoid calling
rpc for all batches at the same time, the old approach would always
results in waiting longer than the publishing period.
@ali-bahjati ali-bahjati force-pushed the fix/fire-and-forget-updates branch from 6872b52 to 9e09a57 Compare December 15, 2023 11:16
@ali-bahjati ali-bahjati marked this pull request as ready for review December 15, 2023 11:16
@ali-bahjati ali-bahjati merged commit 04391be into main Dec 15, 2023
2 checks passed
@ali-bahjati ali-bahjati deleted the fix/fire-and-forget-updates branch December 15, 2023 11:30
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