Fix type getters #115
Labels
No labels
P0
P1
P2
P3
good first issue
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-api-go#115
Loading…
Reference in a new issue
No description provided.
Delete branch "aarifullin/frostfs-api-go:fix/apemanager_getters"
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?
Fixed for
apemanager
,rppclient
andnetmap
6c2cd0f0c4
to61323c388f
Speaking of gopatch and why it is useful, here are some other occurences (I have removed false positives)
61323c388f
to2ae34b5458
New commits pushed, approval review dismissed automatically according to repository settings
New commits pushed, approval review dismissed automatically according to repository settings
apemanager: Fix type gettersto Fix type gettersAwesome. I have also fixed that for
rpcclient
andnetmap
to avoid unexpected panics in the future@ -20,5 +20,9 @@ type Conn interface {
// Client should not be used after Close() call
// on the connection: behavior is undefined.
func (c *Client) Conn() io.Closer {
if c == nil {
This was the kind of false-positive I was referring to)
c
is not expected to be nil and we will panic on callingClose
anyway, so I would revert this change.Hm. That's right point. I reverted the commit for rpcclient
2ae34b5458
to5e82e8c776