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

feat: Implement half-duplex streaming #38

Merged
merged 6 commits into from
Jan 24, 2024
Merged

Conversation

matheus23
Copy link
Member

Implements streaming the CAR file that's generated in a response and consuming a response CAR stream.

This is not doing full-duplex streaming yet, but the difference shouldn't be too big.

This has helped cold sync in appa a lot, since it reduces the amount of round-trips to one and streams all bytes needed for sync in one go.

@matheus23 matheus23 self-assigned this Jan 24, 2024
Copy link

codecov bot commented Jan 24, 2024

Codecov Report

Attention: 65 lines in your changes are missing coverage. Please review.

Comparison is base (b22fb94) 49.70% compared to head (295b8b3) 50.00%.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main      #38      +/-   ##
==========================================
+ Coverage   49.70%   50.00%   +0.29%     
==========================================
  Files          13       13              
  Lines         511      560      +49     
  Branches      244      267      +23     
==========================================
+ Hits          254      280      +26     
- Misses         60       62       +2     
- Partials      197      218      +21     
Files Coverage Δ
car-mirror/src/dag_walk.rs 39.02% <ø> (ø)
car-mirror/src/pull.rs 68.42% <ø> (ø)
car-mirror/src/push.rs 68.42% <ø> (ø)
car-mirror/src/traits.rs 26.31% <ø> (ø)
car-mirror/src/incremental_verification.rs 48.00% <73.68%> (+6.02%) ⬆️
car-mirror/src/common.rs 57.01% <48.71%> (-2.68%) ⬇️

@matheus23 matheus23 merged commit 122f369 into main Jan 24, 2024
11 checks passed
@matheus23 matheus23 deleted the matheus23/streaming branch January 24, 2024 10:37
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.

1 participant