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

change store type dyn -> static #54

Merged
merged 3 commits into from
May 31, 2024
Merged

Conversation

rawdaGastan
Copy link
Contributor

Description

  • change store type from dyn to static

src/store/mod.rs Outdated
.expect("failed to make dir store"),
));
}
if parsed.scheme() == "s3" {
Copy link
Member

Choose a reason for hiding this comment

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

this should also be done for s3s and s3s+tls as per original map

i think also you can use a match instead of multiple if statements

src/lib.rs Outdated
@@ -61,8 +61,8 @@ mod test {
let store1 = DirStore::new(root.join("store1")).await.unwrap();
let mut store = Router::new();

store.add(0x00, 0x7f, Box::new(store0));
store.add(0x80, 0xff, Box::new(store1));
store.add(0x00, 0x7f, Stores::Dir(store0));
Copy link
Member

Choose a reason for hiding this comment

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

In general any Store should work in place of Stores since they both implement Store trait. I did some changes to fix this and will push it

@muhamadazmy muhamadazmy merged commit 502d0fa into master May 31, 2024
1 check passed
@muhamadazmy muhamadazmy deleted the master_static_store_type branch May 31, 2024 08:26
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.

None yet

2 participants