fixed deadlock during sync.Once call

Signed-off-by: Jürgen Eckel <juergen@riddleandcode.com>
This commit is contained in:
Jürgen Eckel 2024-03-11 09:14:09 +01:00
parent bc64dd2a25
commit c7ca04e1c3
No known key found for this signature in database

View File

@ -43,8 +43,6 @@ func DefaultConfig() *Config {
// GetConfig returns the config instance for the SDK.
func GetConfig() *Config {
initConfig.Do(func() {
changeLock.Lock()
defer changeLock.Unlock()
libConfig = DefaultConfig()
sdkConfig = sdk.GetConfig()
libConfig.SetBech32PrefixForAccount("plmnt")