Skip to content

Commit

Permalink
Changing RWMutex to Mutex since we no longer use Read mutex
Browse files Browse the repository at this point in the history
  • Loading branch information
dimpar committed Sep 13, 2023
1 parent 0f03dd8 commit c0e9d25
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/bitcoin/electrum/electrum.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ var (
type Connection struct {
parentCtx context.Context
client *electrum.Client
clientMutex *sync.RWMutex
clientMutex *sync.Mutex
config Config
}

Expand All @@ -59,7 +59,7 @@ func Connect(parentCtx context.Context, config Config) (bitcoin.Chain, error) {
c := &Connection{
parentCtx: parentCtx,
config: config,
clientMutex: &sync.RWMutex{},
clientMutex: &sync.Mutex{},
}

if err := c.electrumConnect(); err != nil {
Expand Down

0 comments on commit c0e9d25

Please sign in to comment.