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

async calculations #65

Merged
merged 3 commits into from
Oct 24, 2024
Merged

async calculations #65

merged 3 commits into from
Oct 24, 2024

Conversation

jordy25519
Copy link
Collaborator

if client is subscribed calculation will use latest market/oracle values from cache otherwise will fall back to network queries.
adds negligible overhead for subscribed clients, makes it just work when a market/oracle is not subscribed

improved errors when data is unsubscribed, RUST_LOG=rpc=debug will output when network queries are being made so users can easily see which subscriptions are required

@jordy25519 jordy25519 merged commit 09ac04f into main Oct 24, 2024
1 check passed
@jordy25519 jordy25519 deleted the fix/async-calculations branch October 24, 2024 03:53
@jordy25519 jordy25519 restored the fix/async-calculations branch October 24, 2024 04:00
@jordy25519 jordy25519 deleted the fix/async-calculations branch October 24, 2024 04:01
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.

1 participant