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: add Artipie server #50

Merged
merged 2 commits into from
Jan 26, 2022
Merged

feat: add Artipie server #50

merged 2 commits into from
Jan 26, 2022

Conversation

genryxy
Copy link
Contributor

@genryxy genryxy commented Jan 24, 2022

Part of #47
Create a simple Artipie server for uploading and downloading binary data. This service will be used later to compare performance with Spring realization

@genryxy genryxy requested review from a team and olenagerasimova and removed request for a team January 24, 2022 13:56
Copy link
Member

@olenagerasimova olenagerasimova left a comment

Choose a reason for hiding this comment

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

@genryxy thanks, please, check my suggestions

final Iterable<Map.Entry<String, String>> headers,
final Publisher<ByteBuffer> body
) {
Response res;
Copy link
Member

Choose a reason for hiding this comment

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

I'm not sure that relevant, but I thunk it would be better to implement this slice in async way, using AsyncResponce and CompletableFuture.supplyAsync() or runAsync

Files.walk(this.toclean)
.sorted(Comparator.reverseOrder())
.map(Path::toFile)
.forEach(File::delete);
Copy link
Member

Choose a reason for hiding this comment

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

also, will it not fail if there are internal directories? Maybe, it would make sense to add commons.io dependency and FileUtils.detele

@genryxy
Copy link
Contributor Author

genryxy commented Jan 25, 2022

@olenagerasimova thanks, corrected

Copy link
Member

@olenagerasimova olenagerasimova left a comment

Choose a reason for hiding this comment

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

@genryxy thanks

@genryxy
Copy link
Contributor Author

genryxy commented Jan 25, 2022

@g4s8 could you please check/merge

@g4s8 g4s8 merged commit 0375592 into artipie:master Jan 26, 2022
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.

3 participants