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

no pretranslations written #602

Merged
merged 3 commits into from
Jan 15, 2025
Merged

no pretranslations written #602

merged 3 commits into from
Jan 15, 2025

Conversation

johnml1135
Copy link
Collaborator

@johnml1135 johnml1135 commented Jan 15, 2025

Fix for #601 - Make sure you flush!


This change is Reviewable

@johnml1135 johnml1135 requested a review from Enkidu93 January 15, 2025 15:52
Copy link
Contributor

@ddaspit ddaspit left a comment

Choose a reason for hiding this comment

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

Reviewed 1 of 1 files at r1, all commit messages.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @Enkidu93 and @johnml1135)


src/Machine/src/Serval.Machine.Shared/Services/MessageOutboxService.cs line 90 at r1 (raw file):

            await contentStream.CopyToAsync(fileStream, cancellationToken);
            await fileStream.FlushAsync(cancellationToken);
            await fileStream.DisposeAsync();

Instead of explicitly calling dispose, we should scope the using block properly.

@johnml1135
Copy link
Collaborator Author

src/Machine/src/Serval.Machine.Shared/Services/MessageOutboxService.cs line 90 at r1 (raw file):

Previously, ddaspit (Damien Daspit) wrote…

Instead of explicitly calling dispose, we should scope the using block properly.

Is that what you were thinking about?

@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 64.48%. Comparing base (a4203cf) to head (8c0cfbc).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #602   +/-   ##
=======================================
  Coverage   64.48%   64.48%           
=======================================
  Files         280      280           
  Lines       14105    14105           
  Branches     1825     1823    -2     
=======================================
+ Hits         9095     9096    +1     
+ Misses       4349     4348    -1     
  Partials      661      661           

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

Copy link
Contributor

@ddaspit ddaspit left a comment

Choose a reason for hiding this comment

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

Reviewed 1 of 1 files at r2, all commit messages.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @Enkidu93 and @johnml1135)


src/Machine/src/Serval.Machine.Shared/Services/MessageOutboxService.cs line 90 at r1 (raw file):

Previously, johnml1135 (John Lambert) wrote…

Is that what you were thinking about?

Yes. It should be an await using.

@johnml1135
Copy link
Collaborator Author

src/Machine/src/Serval.Machine.Shared/Services/MessageOutboxService.cs line 90 at r1 (raw file):

Previously, ddaspit (Damien Daspit) wrote…

Yes. It should be an await using.

Done.

@johnml1135 johnml1135 merged commit ac6f0b2 into main Jan 15, 2025
1 of 2 checks passed
@johnml1135 johnml1135 deleted the fix_large_pretranslation_files branch January 15, 2025 19:00
Copy link
Contributor

@ddaspit ddaspit left a comment

Choose a reason for hiding this comment

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

Reviewed 1 of 1 files at r3, all commit messages.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved

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.

3 participants