Skip to content
This repository has been archived by the owner on Aug 1, 2024. It is now read-only.
/ cosmos-sdk Public archive
forked from cosmos/cosmos-sdk

Commit

Permalink
chore: change lock to Rlock (cosmos#14867)
Browse files Browse the repository at this point in the history
  • Loading branch information
tac0turtle authored and tsenart committed Apr 12, 2023
1 parent db1d701 commit 966ffc6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions types/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 966ffc6

Please sign in to comment.