Optimisation: Large struct pointer conversion (final part) (#265)

Completes large struct pointer optomisations over the entire codebase and enables hugeParams linter by default
This commit is contained in:
Andrew
2019-04-04 15:31:49 +11:00
committed by Adrian Gallagher
parent 107cf76373
commit ca55f2f965
97 changed files with 195 additions and 195 deletions

View File

@@ -103,7 +103,7 @@ type OKGroup struct {
}
// Setup method sets current configuration details if enabled
func (o *OKGroup) Setup(exch config.ExchangeConfig) {
func (o *OKGroup) Setup(exch *config.ExchangeConfig) {
if !exch.Enabled {
o.SetEnabled(false)
} else {
@@ -131,7 +131,7 @@ func (o *OKGroup) Setup(exch config.ExchangeConfig) {
if err != nil {
log.Fatal(err)
}
err = o.SetAPIURL(&exch)
err = o.SetAPIURL(exch)
if err != nil {
log.Fatal(err)
}

View File

@@ -70,7 +70,7 @@ func (o *OKGroup) UpdateTicker(p currency.Pair, assetType string) (tickerData ti
Volume: resp.BaseVolume24h,
}
err = ticker.ProcessTicker(o.Name, tickerData, assetType)
err = ticker.ProcessTicker(o.Name, &tickerData, assetType)
return
}