-
Notifications
You must be signed in to change notification settings - Fork 8
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
Conversation
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.
@genryxy thanks, please, check my suggestions
final Iterable<Map.Entry<String, String>> headers, | ||
final Publisher<ByteBuffer> body | ||
) { | ||
Response res; |
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.
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); |
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.
also, will it not fail if there are internal directories? Maybe, it would make sense to add commons.io dependency and FileUtils.detele
@olenagerasimova thanks, corrected |
449ed48
to
f92785a
Compare
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.
@genryxy thanks
@g4s8 could you please check/merge |
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