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

Infer streaming URL from instance information #204

Merged
merged 2 commits into from
Mar 11, 2024

Conversation

ASTRELION
Copy link
Contributor

This PR attempts to infer the base streaming URL from the instance information instead of needing to manually provide it separately. It does this by calling get_instance() and retrieving the streaming_api URL if available, otherwise it will use the base_url of the client.

This is obviously a breaking change, since the function signatures for all the streaming functions have all become async and the streaming_url parameter is removed.

src/firefish/firefish.rs Outdated Show resolved Hide resolved
@h3poteto h3poteto self-requested a review March 3, 2024 12:23
Copy link
Owner

@h3poteto h3poteto left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@h3poteto
Copy link
Owner

h3poteto commented Mar 6, 2024

It is a little breaking change, so I will merge it in the next minor release (not a patch release).

@h3poteto h3poteto merged commit 782283c into h3poteto:master Mar 11, 2024
3 checks passed
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