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

StateLookup refactors #357

Merged
merged 4 commits into from
Sep 27, 2021
Merged

StateLookup refactors #357

merged 4 commits into from
Sep 27, 2021

Conversation

Half-Shot
Copy link
Contributor

Start using the Intent object to avoid dependence on the deprecated MatrixClient, and generally improve debug-ability.

if (error.message === "Failed to join room") {
throw err; // Could not join the room, don't retry.
}
if (error.statusCode && error.statusCode >= 400 && error.statusCode <= 599) { // 4xx, 5xx
Copy link
Contributor

Choose a reason for hiding this comment

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

Unrelated to this PR, but shouldn't we retry 5xxes?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This PR plays it a bit safe, we could adapt it in the future.

Copy link
Contributor

@tadzik tadzik left a comment

Choose a reason for hiding this comment

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

Looks alright

@Half-Shot Half-Shot merged commit d8248eb into develop Sep 27, 2021
@Half-Shot Half-Shot deleted the hs/state-lookup-refactors branch May 2, 2023 16:05
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