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

Refactor the sliding sync stream method #1446

Merged
merged 2 commits into from
Feb 7, 2023

Conversation

poljar
Copy link
Contributor

@poljar poljar commented Feb 3, 2023

Tested with the sliding sync integrations tests, so hopefully nothing broke.

@poljar poljar requested a review from gnunicorn February 3, 2023 11:59
@gnunicorn
Copy link
Contributor

is that mainly a code move or did you also change any of the internals? What prompted the change?

@codecov
Copy link

codecov bot commented Feb 3, 2023

Codecov Report

Base: 72.82% // Head: 72.84% // Increases project coverage by +0.01% 🎉

Coverage data is based on head (12d7a7f) compared to base (4115975).
Patch has no changes to coverable lines.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1446      +/-   ##
==========================================
+ Coverage   72.82%   72.84%   +0.01%     
==========================================
  Files         121      121              
  Lines       13292    13292              
==========================================
+ Hits         9680     9682       +2     
+ Misses       3612     3610       -2     
Impacted Files Coverage Δ
crates/matrix-sdk/src/sliding_sync.rs 0.00% <ø> (ø)
crates/matrix-sdk-crypto/src/identities/manager.rs 72.15% <0.00%> (+0.78%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@poljar
Copy link
Contributor Author

poljar commented Feb 3, 2023

is that mainly a code move or did you also change any of the internals?

It's mainly a code move, but you can't call yield/continue/break in the sync_once() method some things got moved around a bit more then what I would like to, not having the ability to test this myself in EX.

What prompted the change?

I would like to connect the instrumentation in this method to a root span. The easiest way to achieve this is to call future.instrument(root_span). So I would like to have the bulk of the logic in a separate future.

@poljar
Copy link
Contributor Author

poljar commented Feb 3, 2023

What prompted the change?

This PR #1447

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
…ce method
@poljar poljar force-pushed the poljar/sliding-sync-stream-refactor branch from 7e9187e to 12d7a7f Compare February 3, 2023 21:32
@gnunicorn gnunicorn self-assigned this Feb 4, 2023
@poljar poljar merged commit a173461 into main Feb 7, 2023
@poljar poljar deleted the poljar/sliding-sync-stream-refactor branch February 7, 2023 13:26
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.

None yet

2 participants