Skip to content

Expose decoder progress - #248

Merged
dspicher merged 1 commit into
dspicher:masterfrom
seguri:expose-decoder-progress
Jul 2, 2026
Merged

dspicher merged 1 commit into
dspicher:masterfrom
seguri:expose-decoder-progress

Conversation

@seguri

@seguri seguri commented Jun 28, 2026

Copy link
Copy Markdown
Contributor

No description provided.

@codecov

codecov Bot commented Jun 29, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (b3f6200) to head (3234029).

Additional details and impacted files
@@            Coverage Diff            @@
##            master      #248   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            5         5           
  Lines         1229      1266   +37     
=========================================
+ Hits          1229      1266   +37     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@dspicher dspicher left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Thanks for the PR!

If you are willing to share, I would be curious what you use the crate for :)

Comment thread src/fountain.rs Resolved
Comment thread src/fountain.rs Resolved
@dspicher

Copy link
Copy Markdown
Owner

Can you rebase on master?

@dspicher dspicher mentioned this pull request Jun 29, 2026
@seguri
seguri requested a review from dspicher July 1, 2026 21:29
Comment thread src/fountain.rs
/// [`complete`]: Decoder::complete
/// [`fragment_count`]: Decoder::fragment_count
#[must_use]
pub fn resolved_fragment_count(&self) -> Option<usize> {

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Sorry, I had mistakenly posted my previous comment on the wrong method.

This we fundamentally know in the beginning, even before any part has been received: We have resolved zero fragments. So this should return usize.

Please squash all commits into one when you're done, thanks!

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

As the previous implementation already did what you are asking and the current one improved on that, even if it was the wrong comment, couldn't we keep it like it is now? I think it's nice to distinguish between None and Some(0)

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

That's true, Some(0) is also possible 👍

Could you squash please?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Done

Comment thread src/fountain.rs Resolved
@seguri
seguri requested a review from dspicher July 2, 2026 20:16
@dspicher
dspicher merged commit 265701d into dspicher:master Jul 2, 2026
8 checks passed
@dspicher

dspicher commented Jul 2, 2026

Copy link
Copy Markdown
Owner

Published as part of 0.5.0: https://github.com/dspicher/ur-rs/releases/tag/0.5.0

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