mirror of
https://github.com/d0zingcat/gocryptotrader.git
synced 2026-05-13 23:16:45 +00:00
CI: Bump go version, linters and fix minor issues (#1130)
* CI: Bump go version, linters and fix minor issues * Bump version, fix loop variables * Revert * Rid TODOs now that 1.51 has been released
This commit is contained in:
@@ -569,8 +569,7 @@ func (bot *Engine) GetSpecificTicker(ctx context.Context, p currency.Pair, excha
|
||||
}
|
||||
|
||||
// GetCollatedExchangeAccountInfoByCoin collates individual exchange account
|
||||
// information and turns into into a map string of
|
||||
// exchange.AccountCurrencyInfo
|
||||
// information and turns it into a map string of exchange.AccountCurrencyInfo
|
||||
func GetCollatedExchangeAccountInfoByCoin(accounts []account.Holdings) map[currency.Code]account.Balance {
|
||||
result := make(map[currency.Code]account.Balance)
|
||||
for x := range accounts {
|
||||
|
||||
@@ -570,7 +570,7 @@ func TestIsRelatablePairs(t *testing.T) {
|
||||
t.Fatal(err)
|
||||
}
|
||||
|
||||
// Test relationl crypto pairs with with similar names
|
||||
// Test relationl crypto pairs with similar names
|
||||
result = IsRelatablePairs(xbtltc, btcltc, false)
|
||||
if !result {
|
||||
t.Fatal("Unexpected result")
|
||||
|
||||
@@ -2542,10 +2542,7 @@ func fillMissingCandlesWithStoredTrades(startTime, endTime time.Time, klineItem
|
||||
if len(tradeCandles.Candles) == 0 {
|
||||
continue
|
||||
}
|
||||
|
||||
for i := range tradeCandles.Candles {
|
||||
response.Candles = append(response.Candles, tradeCandles.Candles[i])
|
||||
}
|
||||
response.Candles = append(response.Candles, tradeCandles.Candles...)
|
||||
|
||||
for i := range response.Candles {
|
||||
log.Infof(log.GRPCSys,
|
||||
|
||||
Reference in New Issue
Block a user