client: Simplify netmap/session methods #55
No reviewers
TrueCloudLab/storage-services-committers
TrueCloudLab/storage-services-developers
Labels
No labels
P0
P1
P2
P3
good first issue
pool
Infrastructure
blocked
bug
config
discussion
documentation
duplicate
enhancement
go
help wanted
internal
invalid
kludge
observability
perfomance
question
refactoring
wontfix
No milestone
No project
No assignees
5 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: TrueCloudLab/frostfs-sdk-go#55
Loading…
Add table
Reference in a new issue
No description provided.
Delete branch "fyrchik/frostfs-sdk-go:netmap-refactor"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@ -19,6 +19,16 @@ type PrmEndpointInfo struct {
prmCommonMeta
}
func (x *PrmEndpointInfo) formRequest(c *Client) (*v2netmap.LocalNodeInfoRequest, error) {
can we call it
buildRequest
,asRequest
or simplyrequest
instead? Maybe I'm biased, but this sounds more like "requesting a form" than "forming a request" :)or
toRequest
Fixed
Fixed
Fixed
Fixed
Fixed
Fixed
Fixed
Fixed
Fixed
Fixed
Fixed
Fixed
@ -113,0 +92,4 @@
verV2 := body.GetVersion()
if verV2 == nil {
return &res, newErrMissingResponseField(fieldVersion)
I think it's more natural to return
nil
instead&res
in the error caseFixed. I don't really have arguments, besides returning status if we already have it. You suggestion is backwards compatible, however.
945ac2f58c
to3d2219e722
3d2219e722
to30121b9788