chore: change lock to Rlock (#14867)
This commit is contained in:
parent
d2e23d0ff3
commit
811f12edb0
@ -74,8 +74,8 @@ func GetSealedConfig(ctx context.Context) (*Config, error) {
|
||||
}
|
||||
|
||||
func (config *Config) assertNotSealed() {
|
||||
config.mtx.Lock()
|
||||
defer config.mtx.Unlock()
|
||||
config.mtx.RLock()
|
||||
defer config.mtx.RUnlock()
|
||||
|
||||
if config.sealed {
|
||||
panic("Config is sealed")
|
||||
|
||||
Loading…
Reference in New Issue
Block a user