Skip to content

Commit

Permalink
use value mutex to not initialize
Browse files Browse the repository at this point in the history
  • Loading branch information
y0sher committed Aug 29, 2024
1 parent a9949f2 commit b584888
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions wallets/account.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ type HDAccount struct {
id uuid.UUID
validationKey *core.HDKey
withdrawalPubKey []byte
contextMtx *sync.RWMutex
contextMtx sync.RWMutex
context *core.WalletContext
}

Expand Down Expand Up @@ -124,7 +124,6 @@ func NewValidatorAccount(
validationKey: validationKey,
withdrawalPubKey: withdrawalPubKey,
basePath: basePath,
contextMtx: &sync.RWMutex{},
context: context,
}
}
Expand Down

0 comments on commit b584888

Please sign in to comment.