Skip to content

Commit b584888

Browse files
committed
use value mutex to not initialize
1 parent a9949f2 commit b584888

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

wallets/account.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ type HDAccount struct {
2222
id uuid.UUID
2323
validationKey *core.HDKey
2424
withdrawalPubKey []byte
25-
contextMtx *sync.RWMutex
25+
contextMtx sync.RWMutex
2626
context *core.WalletContext
2727
}
2828

@@ -124,7 +124,6 @@ func NewValidatorAccount(
124124
validationKey: validationKey,
125125
withdrawalPubKey: withdrawalPubKey,
126126
basePath: basePath,
127-
contextMtx: &sync.RWMutex{},
128127
context: context,
129128
}
130129
}

0 commit comments

Comments
 (0)