mirror of
https://github.com/d0zingcat/gocryptotrader.git
synced 2026-06-03 07:26:45 +00:00
linter: Enable gofumpt and run against codebase (#1848)
* linter: Enable gofumpt and run against codebase * Address shazbert's nits * gofumpt: Fix issues after rebase
This commit is contained in:
@@ -28,10 +28,6 @@ const (
|
||||
tradeTimeLayout = time.DateTime + ".000000"
|
||||
)
|
||||
|
||||
var (
|
||||
location *time.Location
|
||||
)
|
||||
|
||||
var defaultSubscriptions = subscription.List{
|
||||
{Enabled: true, Asset: asset.Spot, Channel: subscription.TickerChannel, Interval: kline.ThirtyMin}, // alternatives "1H", "12H", "24H"
|
||||
{Enabled: true, Asset: asset.Spot, Channel: subscription.OrderbookChannel},
|
||||
@@ -107,9 +103,7 @@ func (b *Bithumb) wsHandleData(respRaw []byte) error {
|
||||
return err
|
||||
}
|
||||
var lu time.Time
|
||||
lu, err = time.ParseInLocation(tickerTimeLayout,
|
||||
tick.Date+tick.Time,
|
||||
location)
|
||||
lu, err = time.ParseInLocation(tickerTimeLayout, tick.Date+tick.Time, b.location)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
@@ -140,9 +134,7 @@ func (b *Bithumb) wsHandleData(respRaw []byte) error {
|
||||
toBuffer := make([]trade.Data, len(trades.List))
|
||||
var lu time.Time
|
||||
for x := range trades.List {
|
||||
lu, err = time.ParseInLocation(tradeTimeLayout,
|
||||
trades.List[x].ContractTime,
|
||||
location)
|
||||
lu, err = time.ParseInLocation(tradeTimeLayout, trades.List[x].ContractTime, b.location)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user