Skip to content

Commit

Permalink
Bitstamp: Fix linter copylock (again)
Browse files Browse the repository at this point in the history
  • Loading branch information
gbjk committed Sep 7, 2023
1 parent 693b549 commit f48933a
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions exchanges/sharedtestvalues/sharedtestvalues.go
Original file line number Diff line number Diff line change
Expand Up @@ -155,14 +155,14 @@ func ForceFileStandard(t *testing.T, pattern string) error {
// It accepts a reader function, which is probably e.wsHandleData but could be anything
func TestFixtureToDataHandler(t *testing.T, seed, e exchange.IBotExchange, fixturePath string, reader func([]byte) error) {
b := e.GetBase()
seedPairs := seed.GetBase().CurrencyPairs

seedPairs.Mutex.RLock()
b.CurrencyPairs.RequestFormat = seedPairs.RequestFormat
b.CurrencyPairs.ConfigFormat = seedPairs.ConfigFormat
b.CurrencyPairs.UseGlobalFormat = seedPairs.UseGlobalFormat
b.CurrencyPairs.Pairs = seedPairs.Pairs
seedPairs.Mutex.RUnlock()
seedBase := seed.GetBase()

seedBase.CurrencyPairs.Mutex.RLock()
b.CurrencyPairs.RequestFormat = seedBase.CurrencyPairs.RequestFormat
b.CurrencyPairs.ConfigFormat = seedBase.CurrencyPairs.ConfigFormat
b.CurrencyPairs.UseGlobalFormat = seedBase.CurrencyPairs.UseGlobalFormat
b.CurrencyPairs.Pairs = seedBase.CurrencyPairs.Pairs
seedBase.CurrencyPairs.Mutex.RUnlock()

b.Name = "fixture"
b.Websocket = &stream.Websocket{
Expand Down

0 comments on commit f48933a

Please sign in to comment.