mirror of
https://github.com/d0zingcat/gocryptotrader.git
synced 2026-05-13 15:09:42 +00:00
linters: Add modernise tool check and fix issues (#2012)
* linters: Add modernise tool check and fix issues * engine: Simplify exch.SetDefaults call and remove localWG * CI: Revert config versions lint workflow
This commit is contained in:
@@ -34,13 +34,11 @@ func main() {
|
||||
var wg sync.WaitGroup
|
||||
for i := range exchange.Exchanges {
|
||||
name := exchange.Exchanges[i]
|
||||
wg.Add(1)
|
||||
go func() {
|
||||
defer wg.Done()
|
||||
wg.Go(func() {
|
||||
if err := engine.Bot.LoadExchange(name); err != nil {
|
||||
log.Printf("Failed to load exchange %s. Err: %s", name, err)
|
||||
}
|
||||
}()
|
||||
})
|
||||
}
|
||||
wg.Wait()
|
||||
log.Println("Done.")
|
||||
|
||||
Reference in New Issue
Block a user