Skip to content

Commit

Permalink
tapdb: remove issuance mutex
Browse files Browse the repository at this point in the history
  • Loading branch information
guggero committed Aug 11, 2023
1 parent c8d3c82 commit 91848b3
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions tapdb/universe.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import (
"database/sql"
"errors"
"fmt"
"sync"

"github.com/btcsuite/btcd/btcec/v2/schnorr"
"github.com/btcsuite/btcd/wire"
Expand Down Expand Up @@ -122,8 +121,6 @@ type BaseUniverseTree struct {

id universe.Identifier

registrationMtx sync.Mutex

smtNamespace string
}

Expand Down Expand Up @@ -291,11 +288,6 @@ func (b *BaseUniverseTree) RegisterIssuance(ctx context.Context,
err error
issuanceProof *universe.IssuanceProof
)

// Limit to a single writer at a time.
b.registrationMtx.Lock()
defer b.registrationMtx.Unlock()

dbErr := b.db.ExecTx(ctx, &writeTx, func(dbTx BaseUniverseStore) error {
issuanceProof, _, err = universeRegisterIssuance(
ctx, dbTx, b.id, key, leaf, metaReveal,
Expand Down

0 comments on commit 91848b3

Please sign in to comment.