From 99bb4164c391e0eb805cd4376172cdfc6d164d60 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=BDiga=20Kokelj?= Date: Wed, 3 Jan 2024 11:59:54 +0100 Subject: [PATCH] RUnlock fix --- .../walletextension/useraccountmanager/user_account_manager.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/walletextension/useraccountmanager/user_account_manager.go b/tools/walletextension/useraccountmanager/user_account_manager.go index 01e3ced3dc..8da88e9bea 100644 --- a/tools/walletextension/useraccountmanager/user_account_manager.go +++ b/tools/walletextension/useraccountmanager/user_account_manager.go @@ -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