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

fix(common): add Linux-specific file caching logic #2090

Merged
merged 3 commits into from
Jul 6, 2024

Conversation

popcnt1
Copy link
Collaborator

@popcnt1 popcnt1 commented Jul 6, 2024

Summary

Implemented conditional logic in the FileCacheManager module where certain methods are only applicable when the target OS is Linux. Methods like new() and drop_cache_range() are now specifically designated for Linux, while others are designated otherwise. This ensures correct functioning across diverse OS.

Implemented conditional logic in the FileCacheManager module where certain methods are only applicable when the target OS is Linux. Methods like `new()` and `drop_cache_range()` are now specifically designated for Linux, while others are designated otherwise. This ensures correct functioning across diverse OS.
Copy link

vercel bot commented Jul 6, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
rooch-portal ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 6, 2024 8:27pm
1 Skipped Deployment
Name Status Preview Comments Updated (UTC)
rooch ⬜️ Ignored (Inspect) Visit Preview Jul 6, 2024 8:27pm

This commit changes the way POSIX functions are called in the file_cache module. Instead of importing the functions directly from libc, they are now referred to via the libc namespace. This improves code clarity by making it clear where these functions originate from.
The commit updates file import in file_cache.rs by replacing individual usages with direct namespace access. These changes include the way the File and Error classes from the std library are accessed. The aim is to improve readability and maintainability.
@popcnt1 popcnt1 merged commit 276fb81 into rooch-network:main Jul 6, 2024
7 checks passed
@popcnt1 popcnt1 deleted the fix.common branch July 6, 2024 20:34
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.

[bug] rebuilding the project results an error
1 participant