mirror of
https://github.com/d0zingcat/gocryptotrader.git
synced 2026-05-29 23:16:51 +00:00
modernise: Run new gopls modernise tool against the codebase and fix minor issues (#1826)
* modernise: Run new gopls modernise tool against codebase
* Address shazbert's nits
* apichecker, gctcli: Simplify HTML scraping functions and improve depth limit handling
* refactor: Create minSyncInterval const and update order book limit handling for binance and binanceUS
* refactor: Various slice usage improvements and rename TODO
* tranches: Revert deleteByID changes due to performance decrease
Shazbert was a F1 driver in a past lifetime 🏎️
* tranches: Simply retrieve copy
Thanks to shazbert
* documentation: Sort contributors list by contributions
* tranches: Remove deadcode in deleteByID
This commit is contained in:
@@ -275,8 +275,8 @@ func TestRegisterWebsocketDataHandlerWithFunctionality(t *testing.T) {
|
||||
}
|
||||
|
||||
// externally defined capture device
|
||||
dataChan := make(chan interface{})
|
||||
fn := func(_ string, data interface{}) error {
|
||||
dataChan := make(chan any)
|
||||
fn := func(_ string, data any) error {
|
||||
switch data.(type) {
|
||||
case string:
|
||||
dataChan <- data
|
||||
@@ -295,7 +295,7 @@ func TestRegisterWebsocketDataHandlerWithFunctionality(t *testing.T) {
|
||||
}
|
||||
|
||||
mock := stream.NewWebsocket()
|
||||
mock.ToRoutine = make(chan interface{})
|
||||
mock.ToRoutine = make(chan any)
|
||||
m.state = readyState
|
||||
err = m.websocketDataReceiver(mock)
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user