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: Simplify use_asset_cacher hook #1032

Merged
merged 2 commits into from
Jan 9, 2025

Conversation

marc2332
Copy link
Owner

@marc2332 marc2332 commented Jan 1, 2025

No description provided.

@marc2332 marc2332 added enhancement 🔥 New feature or request internal impovement👍 Internal code improvements labels Jan 1, 2025
@marc2332 marc2332 added this to the 0.3.0 milestone Jan 1, 2025
@@ -36,7 +40,7 @@ pub enum AssetAge {

impl Default for AssetAge {
fn default() -> Self {
Self::Duration(Duration::from_secs(3600)) // 1h
Self::Duration(Duration::from_secs(10)) // 1h
Copy link
Owner Author

Choose a reason for hiding this comment

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

Revert to 3600

@@ -41,6 +41,7 @@ nokhwa = { version = "0.10.7", features = ["input-native"], optional = true }
paste = "1.0.14"
bitflags = "2.4.1"
bytes = "1.5.0"
tracing.workspace = true
Copy link
Owner Author

Choose a reason for hiding this comment

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

Suggested change
tracing.workspace = true
tracing = { workspace = true }

Copy link
Owner Author

Choose a reason for hiding this comment

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

Revert this too

Copy link

codecov bot commented Jan 9, 2025

Codecov Report

Attention: Patch coverage is 26.86567% with 49 lines in your changes missing coverage. Please review.

Project coverage is 74.79%. Comparing base (05b7d57) to head (f0576e5).
Report is 6 commits behind head on main.

Files with missing lines Patch % Lines
crates/components/src/network_image.rs 0.00% 41 Missing ⚠️
crates/hooks/src/use_asset_cacher.rs 66.66% 8 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff            @@
##             main    #1032    +/-   ##
========================================
  Coverage   74.78%   74.79%            
========================================
  Files         219      219            
  Lines       25433    25576   +143     
========================================
+ Hits        19020    19129   +109     
- Misses       6413     6447    +34     

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

@marc2332 marc2332 marked this pull request as ready for review January 9, 2025 09:20
@marc2332 marc2332 merged commit 2ca99fd into main Jan 9, 2025
7 checks passed
@marc2332 marc2332 deleted the feat/simplify-use-asset-cacher-hook branch January 9, 2025 09:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement 🔥 New feature or request internal impovement👍 Internal code improvements
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

1 participant