Skip to content

Improve network handling in API wrapper #10

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

Merged
merged 4 commits into from
May 22, 2024
Merged

Conversation

Firehed
Copy link
Contributor

@Firehed Firehed commented May 22, 2024

This replaces a number of force-unwraps and vague error-handling paths in the API wrapper with a much more structured Result type. While the error case handling is far from exhaustive, the general structure should be far more robust both in the event of connectivity issues and unexpected backend responses.

Fixes #4 , makes some progress on #9.

@Firehed Firehed merged commit b8ea476 into main May 22, 2024
@Firehed Firehed deleted the improve-network-handling branch May 22, 2024 19:33
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.

Improve internal structure of network logic
1 participant