mirror of
https://github.com/d0zingcat/gocryptotrader.git
synced 2026-06-03 07:26:45 +00:00
Optimisation: large structs/huge param fixes (part 2) (#262)
* updated golangci config to enable hugeparam linter * ModifyOrder struct usage converted to a pointer * OrderBook conversion to struct * More conversion of large structs to pointers * updated golangci config to enable hugeparam linter * ModifyOrder struct usage converted to a pointer * OrderBook conversion to struct * More conversion of large structs to pointers * disabled hugeParam check for golang again * changed based on suggested feedback and fix for no default provider * fixed typing
This commit is contained in:
@@ -213,7 +213,7 @@ func TestBaseCode(t *testing.T) {
|
||||
true)
|
||||
}
|
||||
|
||||
err = main.LoadItem(Item{
|
||||
err = main.LoadItem(&Item{
|
||||
ID: 0,
|
||||
FullName: "Cardano",
|
||||
Role: Cryptocurrency,
|
||||
@@ -421,6 +421,6 @@ func TestItemString(t *testing.T) {
|
||||
if newItem.String() != expected {
|
||||
t.Errorf("Test Failed - Item String() error expected %s but recieved %s",
|
||||
expected,
|
||||
newItem)
|
||||
&newItem)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user