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

Make API requests through nym-http-api-client #1951

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from

Conversation

jmwample
Copy link
Contributor

@jmwample jmwample commented Jan 17, 2025

This change is intended to reduce (ideally to 0) the number of places that we are accessing the Nym API without using the nym-http-api-client.

There were only a handful of places that this was not already the case. While there is likely a more efficient refactor that could be done to better organize the API accesses and the resources that we build out of those accesses, that is not in the scope of this PR.

There is some slight awkwardness around the async / sync function calls here. I tried to keep the existing function signatures as they were which in some places meant using a block_on to call an async fn in a sync context.


This change is Reviewable

@jmwample jmwample requested a review from octol January 17, 2025 22:54
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