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

Волков Никита, ИТМО DWS, Stage 1 #17

Merged
merged 5 commits into from
Mar 1, 2024

Conversation

SicMundus-s
Copy link
Contributor

@SicMundus-s SicMundus-s commented Feb 19, 2024

No description provided.

@SicMundus-s SicMundus-s changed the title init commit Волков Никита, ИТМО DWS, Stage 1 Feb 20, 2024
@incubos incubos requested a review from vladimir-bf February 20, 2024 10:40

public class HttpServerImpl extends HttpServer {

private final ReferenceDao dao;
Copy link
Contributor

Choose a reason for hiding this comment

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

тут лучше определять интерфейсом

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Поправил

if (isIdCorrect(id)) {
return new Response(Response.BAD_REQUEST, Response.EMPTY);
}
MemorySegment key = idToMemorySegment(id);
Copy link
Contributor

Choose a reason for hiding this comment

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

одно поле получается через вызов метода, а второй прямо тут через MemorySegment, для чистоты кода лучше делать одинаково

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Поправил

}

@Override
public CompletableFuture<Void> stop() throws IOException {
Copy link
Contributor

Choose a reason for hiding this comment

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

старт/стоп лучше синхронизированными сделать

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Поправил

@atimofeyev atimofeyev merged commit 6e2cfd5 into polis-vk:main Mar 1, 2024
2 checks passed
osokindm pushed a commit to osokindm/2024-highload-dht that referenced this pull request Mar 6, 2024
* init commit

* data research result

* result

* refactoring

---------

Co-authored-by: atimofeyev <[email protected]>
axothy pushed a commit to axothy/2024-highload-dht that referenced this pull request Mar 13, 2024
* init commit

* data research result

* result

* refactoring

---------

Co-authored-by: atimofeyev <[email protected]>
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