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

add future-ext #234

Merged
merged 1 commit into from
Jan 5, 2025
Merged

add future-ext #234

merged 1 commit into from
Jan 5, 2025

Conversation

TroyKomodo
Copy link
Member

I find the syntax for tokio::time::timeout to be quite ugly, since it breaks the typical chained method calls. With the FutureExt trait we can just call .with_timeout(..) instead which seems to be a cleaner way to do it.

@TroyKomodo TroyKomodo force-pushed the troy/future-ext branch 2 times, most recently from 9fdc26d to 9fb9873 Compare January 5, 2025 20:20
I find the syntax for `tokio::time::timeout` to be quite ugly, since it
breaks the typical chained method calls. With the FutureExt trait we can
just call `.with_timeout(..)` instead which seems to be a cleaner way to
do it.
@TroyKomodo
Copy link
Member Author

?brawl merge

@scuffle-brawl
Copy link
Contributor

scuffle-brawl bot commented Jan 5, 2025

📌 Commit 0b84416 has been approved and added to the merge queue.

Requested by: @TroyKomodo

Approved by: @lennartkloock

@scuffle-brawl
Copy link
Contributor

scuffle-brawl bot commented Jan 5, 2025

⌛ Trying commit 0b84416 with merge 9db4d30...

@scuffle-brawl
Copy link
Contributor

scuffle-brawl bot commented Jan 5, 2025

🎉 Build successful!
Completed in 1:54

Approved by: @lennartkloock
Pushing 9db4d30 to main

@scuffle-brawl scuffle-brawl bot merged commit 9db4d30 into main Jan 5, 2025
7 checks passed
@scuffle-brawl scuffle-brawl bot deleted the troy/future-ext branch January 5, 2025 20:35
Copy link

codecov bot commented Jan 5, 2025

Codecov Report

Attention: Patch coverage is 64.28571% with 10 lines in your changes missing coverage. Please review.

Project coverage is 49.75%. Comparing base (e4800b4) to head (24d7cce).
Report is 4 commits behind head on main.

Current head 24d7cce differs from pull request most recent head 0b84416

Please upload reports for the commit 0b84416 to get more accurate results.

✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
crates/http/src/backend/tcp/serve.rs 0.00% 5 Missing ⚠️
crates/future-ext/src/lib.rs 50.00% 3 Missing ⚠️
crates/http/src/backend/quic/quinn/serve.rs 0.00% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #234      +/-   ##
==========================================
+ Coverage   48.91%   49.75%   +0.84%     
==========================================
  Files         199      201       +2     
  Lines       16329    16436     +107     
==========================================
+ Hits         7987     8178     +191     
+ Misses       8342     8258      -84     
Files with missing lines Coverage Δ
crates/rtmp/src/session/server_session.rs 92.73% <100.00%> (+0.19%) ⬆️
crates/signal/src/lib.rs 67.53% <100.00%> (-1.61%) ⬇️
crates/http/src/backend/quic/quinn/serve.rs 0.00% <0.00%> (ø)
crates/future-ext/src/lib.rs 50.00% <50.00%> (ø)
crates/http/src/backend/tcp/serve.rs 0.00% <0.00%> (ø)

... and 6 files with indirect coverage changes

Components Coverage Δ
scuffle-batching 96.34% <ø> (-3.66%) ⬇️
scuffle-bootstrap 27.15% <ø> (ø)
scuffle-context 55.02% <ø> (+55.02%) ⬆️
scuffle-ffmpeg 0.00% <ø> (ø)
scuffle-h3-webtransport 0.00% <ø> (ø)
scuffle-http 0.00% <0.00%> (ø)
scuffle-metrics 45.39% <ø> (+2.93%) ⬆️
scuffle-pprof 0.00% <ø> (ø)
scuffle-settings 0.00% <ø> (ø)
scuffle-signal 41.60% <100.00%> (-1.82%) ⬇️
postcompile 0.00% <ø> (ø)
scuffle-image-processor ∅ <ø> (∅)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants