[#185] Implement rpc/client for tree service #299

Open
nzinkevich wants to merge 1 commit from nzinkevich/frostfs-sdk-go:feat/tree_service_rpc_client into master
Member

Signed-off-by: Nikita Zinkevich n.zinkevich@yadro.com

Signed-off-by: Nikita Zinkevich <n.zinkevich@yadro.com>
nzinkevich self-assigned this 2024-11-20 13:57:51 +00:00
nzinkevich added 1 commit 2024-11-20 13:57:52 +00:00
[#185] Implement rpc/client for tree service
All checks were successful
DCO / DCO (pull_request) Successful in 1m4s
Tests and linters / Tests (pull_request) Successful in 1m24s
Tests and linters / Lint (pull_request) Successful in 2m5s
4a9a3572fa
Signed-off-by: Nikita Zinkevich <n.zinkevich@yadro.com>
nzinkevich requested review from storage-services-committers 2024-11-20 13:59:15 +00:00
nzinkevich requested review from storage-services-developers 2024-11-20 13:59:16 +00:00
aarifullin reviewed 2024-11-20 17:07:31 +00:00
@ -0,0 +352,4 @@
return r.body
}
return new(HealthcheckRequestBody)
Member

Why does this method return dummy value instead nil?

Why does this method return dummy value instead `nil`?
aarifullin reviewed 2024-11-20 17:17:25 +00:00
@ -0,0 +308,4 @@
type ApplyRequestBody struct {
ContainerID []byte
TreeID string
Operation *LogMove
Member

Even this fields (not only this, but also the rest in this file) is directly accessible from this struct instance, you don't provide any getters to make the usage safe. If a client code directly uses Operation, then it may get big-boom if it will access LogMove fields when it's actually nil.

Don't you consider to make all fields private as we do for all api-go related types? And provide Get/Set methods?

Even this fields (not only this, but also the rest in this file) is directly accessible from this struct instance, you don't provide any getters to make the usage safe. If a client code directly uses `Operation`, then it may get big-boom if it will access `LogMove` fields when it's actually `nil`. Don't you consider to make all fields private as we do for all api-go related types? And provide `Get/Set` methods?
All checks were successful
DCO / DCO (pull_request) Successful in 1m4s
Tests and linters / Tests (pull_request) Successful in 1m24s
Tests and linters / Lint (pull_request) Successful in 2m5s
This pull request doesn't have enough approvals yet. 0 of 2 approvals granted.
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u feat/tree_service_rpc_client:nzinkevich-feat/tree_service_rpc_client
git checkout nzinkevich-feat/tree_service_rpc_client
Sign in to join this conversation.
No reviewers
TrueCloudLab/storage-services-committers
TrueCloudLab/storage-services-developers
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: TrueCloudLab/frostfs-sdk-go#299
No description provided.