-
Notifications
You must be signed in to change notification settings - Fork 122
[feat] add preload the dir and config the depth of load. #1069
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
Changes from all commits
db838c4
c5527c2
87e1fad
f912b87
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,8 +1,9 @@ | ||
| lfs_url = "http://47.79.35.136:8000" | ||
| lfs_url = "http://localhost:8000" | ||
| store_path = "/home/luxian/megadir/store" | ||
| config_file = "config.toml" | ||
| git_author = "MEGA" | ||
| git_email = "admin@mega.org" | ||
| workspace = "/home/luxian/megadir/mount" | ||
| base_url = "http://47.79.35.136:8000" | ||
| dicfuse_readable = "true" | ||
| base_url = "http://localhost:8000" | ||
| dicfuse_readable = "true" | ||
| load_dir_depth = "3" | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Improve the description of configuration options in the |
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,6 @@ | ||
| mod abi; | ||
| mod async_io; | ||
| mod store; | ||
| pub mod store; | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is it necessary to expose this store module? I think only dicfuse should use it. |
||
| mod tree_store; | ||
| use crate::manager::fetch::fetch_tree; | ||
| use crate::util::config; | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[nitpick] This method is quite long and handles multiple responsibilities (tree search, mapping, commit lookup). Consider splitting into helper functions to improve readability and testability.