Skip to content

Commit

Permalink
RUnlock fix
Browse files Browse the repository at this point in the history
  • Loading branch information
zkokelj committed Jan 3, 2024
1 parent 1707cd1 commit 99bb416
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ func NewUserAccountManager(unauthenticatedClient rpc.Client, logger gethlog.Logg
// AddAndReturnAccountManager adds new UserAccountManager if it doesn't exist and returns it, if UserAccountManager already exists for that user just return it
func (m *UserAccountManager) AddAndReturnAccountManager(userID string) *accountmanager.AccountManager {
m.mu.RLock()
defer m.mu.Unlock()
defer m.mu.RUnlock()
existingUserAccountManager, exists := m.userAccountManager[userID]
if exists {
return existingUserAccountManager
Expand Down

0 comments on commit 99bb416

Please sign in to comment.