Convert handler config to interface #172
Labels
No Label
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 Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: TrueCloudLab/frostfs-s3-gw#172
Loading…
Reference in New Issue
There is no content yet.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may exist for a short time before cleaning up, in most cases it CANNOT be undone. Continue?
Is your feature request related to a problem? Please describe.
We have a lot of parameters that should be reloaded by SIGHUP. So currently we have several structs that implements several interfaces. So each struct must have some synchronization primitives (mutex or atomic). It's getting harder to maintain such solution especially because pass config params as struct
Describe the solution you'd like
I suggest convert config to interface and make settings to implement it. We can use only one
sync.RWMutex
and it will be easy to add new params.Describe alternatives you've considered
Continue using current approach.
Additional context
no