diff options
author | 2023-07-10 13:56:14 +0200 | |
---|---|---|
committer | 2023-07-10 12:56:14 +0100 | |
commit | f0dad439f6493e6aa8e17d1dd9c13eafa76fc9f6 (patch) | |
tree | 1eb0e78230b5bd7ff4e3391dc1a3dab062dc5b1f /internal/config/state.go | |
parent | [chore]: Bump golang.org/x/net from 0.11.0 to 0.12.0 (#1973) (diff) | |
download | gotosocial-f0dad439f6493e6aa8e17d1dd9c13eafa76fc9f6.tar.xz |
[feature] Use Read/Write lock for config (#1969)
Diffstat (limited to 'internal/config/state.go')
-rw-r--r-- | internal/config/state.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/config/state.go b/internal/config/state.go index d36a08d12..c55f7b2ec 100644 --- a/internal/config/state.go +++ b/internal/config/state.go @@ -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. |