client: Make PrmDial
, PrmInit
fields public and make setters deprecated #193
No reviewers
TrueCloudLab/storage-core-developers
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
4 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: TrueCloudLab/frostfs-sdk-go#193
Loading…
Reference in a new issue
No description provided.
Delete branch "aarifullin/frostfs-sdk-go:feature/189-prm_dial"
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?
This PR is initiated by the issue #189
@ -88,3 +88,3 @@
}
} else {
prm.timeoutDial = 5 * time.Second
prm.DialTimeout = new(time.Duration)
Do we really want a pointer here? It is a primitive type,
<= 0
value can be transform to a default. These 2 lines you wrote will also be needed on the caller side, and they are quite annoying TBHFixed
@ -178,2 +185,3 @@
// Deprecated: Use PrmInit.ResponseInfoCallback instead.
func (x *PrmInit) SetResponseInfoCallback(f func(ResponseMetaInfo) error) {
x.cbRespInfo = f
x.ResponseInfoCallback = f
I have not checked this after refactoring, but is it still used?
If you are asking whether
SetResponseInfoCallback
is used somewhere - yes, it is:prmInit.SetResponseInfoCallback(x.opts.ResponseCallback)
048cc4ff53
toae7b3bf97b
ae7b3bf97b
to3787477133