From b5848884a7a503cc6125cbd02ce2b2d097b2d124 Mon Sep 17 00:00:00 2001 From: y0sher Date: Thu, 29 Aug 2024 12:10:06 +0300 Subject: [PATCH] use value mutex to not initialize --- wallets/account.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/wallets/account.go b/wallets/account.go index cea23c7f..a7c12ed3 100644 --- a/wallets/account.go +++ b/wallets/account.go @@ -22,7 +22,7 @@ type HDAccount struct { id uuid.UUID validationKey *core.HDKey withdrawalPubKey []byte - contextMtx *sync.RWMutex + contextMtx sync.RWMutex context *core.WalletContext } @@ -124,7 +124,6 @@ func NewValidatorAccount( validationKey: validationKey, withdrawalPubKey: withdrawalPubKey, basePath: basePath, - contextMtx: &sync.RWMutex{}, context: context, } }