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

Remove invalid await in replication code #400

Merged
merged 2 commits into from
Sep 14, 2021
Merged

Remove invalid await in replication code #400

merged 2 commits into from
Sep 14, 2021

Conversation

anoadragon453
Copy link
Member

@anoadragon453 anoadragon453 commented Sep 14, 2021

An extra await ended up in #364.

This may prevent successful reporting of peer replication results, causing replication payloads to increase over time as the same associations are replicated over and over.

Logs may have many instances of Error pushing updates to <hostname>:<port> as well.

Discovered via Sentry: https://sentry.matrix.org/sentry/sydent/issues/230767/?query=is%3Aunresolved.

Copy link
Member

@clokep clokep left a comment

Choose a reason for hiding this comment

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

I think this is OK, I'm a bit confused by "unnecessary" though -- I would expect this code to completely error since setLastSentVersionAndPokeSucceeded doesn't return an awaitable.

@anoadragon453
Copy link
Member Author

Err, yes. Probably a poor choice of words. It will raise an exception without fail.

@anoadragon453 anoadragon453 changed the title Remove unnecessary await in replication code Remove invalid await in replication code Sep 14, 2021
@anoadragon453 anoadragon453 merged commit 7857b06 into main Sep 14, 2021
@anoadragon453 anoadragon453 deleted the anoa/no_await branch September 14, 2021 20:01
@DMRobertson
Copy link
Contributor

Is this deployed? I can still see those errors in Sentry coming through today.

@babolivier
Copy link
Contributor

I don't think it is

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.

4 participants