[#191] limit_tree_pool_retries #191
No reviewers
TrueCloudLab/storage-services-developers
TrueCloudLab/storage-core-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#191
Loading…
Reference in a new issue
No description provided.
Delete branch "poc/limit_tree_pool_retries"
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?
WIP: poc/limit_tree_pool_retriesto WIP: [#191] limit_tree_pool_retriesdd96a3ee32
to3ead96fa3a
3ead96fa3a
to9c5d3aedcc
WIP: [#191] limit_tree_pool_retriesto [#191] limit_tree_pool_retries@ -794,0 +824,4 @@
type reqKeyType string
const reqIDKey = reqKeyType("request_id")
For single-value context keys we can use typed empty struct
type reqKeyType struct{}
I belive it is faster, because we don't need to compare string values
Go compiler uses this appoach a lot, e.g.
9d836d41d0/src/net/lookup.go (L312)
9c5d3aedcc
to3b0871fba6
@ -794,0 +824,4 @@
type reqKeyType struct{}
func SetRequestID(ctx context.Context, reqID string) context.Context {
How about
WithRequestID
(similar toWithValue
)?And if it is public we need some comments about what it affects.
I would prefer to have paired names
GetRequestID
/SetRequestID
3b0871fba6
toab75edd709