Browse Source

Remove unneeded initialisation of mutex

Gustav Simonsson 10 năm trước cách đây
mục cha
commit
23f2658091
1 tập tin đã thay đổi với 0 bổ sung1 xóa
  1. 0 1
      accounts/account_manager.go

+ 0 - 1
accounts/account_manager.go

@@ -60,7 +60,6 @@ func NewAccountManager(keyStore crypto.KeyStore2, unlockMilliseconds time.Durati
 		keyStore:           keyStore,
 		unlockedKeys:       keysMap,
 		unlockMilliseconds: unlockMilliseconds,
-		mutex:              sync.RWMutex{}, // for accessing unlockedKeys map
 	}
 	return *am
 }