[#74] Replace atomics with mutex for reloadable params #84
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
5 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: TrueCloudLab/frostfs-http-gw#84
Loading…
Reference in New Issue
There is no content yet.
Delete Branch "mbiryukova/frostfs-http-gw:feature/replace_atomics_with_mutex"
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?
Closes #74
Signed-off-by: Marina Biryukova m.biryukova@yadro.com
@ -0,0 +3,4 @@
import "sync"
// Settings stores reloading parameters, so it has to provide getters and setters which use RWMutex.
type Settings struct {
I'm not sure that implementation of
Config
interface should be in the same package. I would suggest move this tocmd/http-gw
the same as for s3-gw in TrueCloudLab/frostfs-s3-gw#20630e4f1cb68
tob8e06d7dbb
@ -23,1 +22,4 @@
type Config interface {
DefaultTimestamp() bool
SetDefaultTimestamp(val bool)
Why do we need setters now?
Removed
b8e06d7dbb
toe26577e753