mirror of
https://github.com/planetmint/planetmint-go.git
synced 2025-11-26 15:35:46 +00:00
fixed deadlock during sync.Once call
Signed-off-by: Jürgen Eckel <juergen@riddleandcode.com>
This commit is contained in:
parent
bc64dd2a25
commit
c7ca04e1c3
@ -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")
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user