Skip to content
Snippets Groups Projects
Verified Commit aedecfeb authored by Volker Schukai's avatar Volker Schukai :alien:
Browse files

fix protect access to the config

parent b081face
No related branches found
No related tags found
No related merge requests found
......@@ -62,5 +62,9 @@ func (s *Settings[C]) SetMnemonic(mnemonic string) *Settings[C] {
// Remember that the configuration is a copy of the original configuration.
// Changes to the configuration will not be reflected in the original configuration.
func (s *Settings[C]) Config() C {
s.Lock()
defer s.Unlock()
return s.config
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment