From c0e9d25fc1868266d6afef35fe26253b05d8c9b2 Mon Sep 17 00:00:00 2001 From: Dmitry Date: Wed, 13 Sep 2023 14:35:13 +0200 Subject: [PATCH] Changing RWMutex to Mutex since we no longer use Read mutex --- pkg/bitcoin/electrum/electrum.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/bitcoin/electrum/electrum.go b/pkg/bitcoin/electrum/electrum.go index d2aab897ee..06902af4de 100644 --- a/pkg/bitcoin/electrum/electrum.go +++ b/pkg/bitcoin/electrum/electrum.go @@ -34,7 +34,7 @@ var ( type Connection struct { parentCtx context.Context client *electrum.Client - clientMutex *sync.RWMutex + clientMutex *sync.Mutex config Config } @@ -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 {