mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-10-29 16:32:25 -05:00
[feature] Use Read/Write lock for config (#1969)
This commit is contained in:
parent
6de5ca46f8
commit
f0dad439f6
3 changed files with 323 additions and 323 deletions
|
|
@ -32,7 +32,7 @@ import (
|
|||
type ConfigState struct { //nolint
|
||||
viper *viper.Viper
|
||||
config Configuration
|
||||
mutex sync.Mutex
|
||||
mutex sync.RWMutex
|
||||
}
|
||||
|
||||
// NewState returns a new initialized ConfigState instance.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue