mirror of
https://github.com/d0zingcat/gocryptotrader.git
synced 2026-06-07 23:16:53 +00:00
Feature: Faster start & stop times (#648)
* Updates starting and stopping routines to be a bit more parallel with less waiting required * Removes stop, removes debugging output * linting and test fixes * Add extra kill switch for exiting on exchange loading delay * Fixes fun math * breaks loop instead of switch. Moves param warns higher * Removes unceccary gos. passes in cfg to remove data race * Removes os signal processing. Fixes bad master merge
This commit is contained in:
@@ -1636,7 +1636,10 @@ func (c *Config) SaveConfigToFile(configPath string) error {
|
||||
}
|
||||
defer func() {
|
||||
if writer != nil {
|
||||
writer.Close()
|
||||
err = writer.Close()
|
||||
if err != nil {
|
||||
log.Error(log.Global, err)
|
||||
}
|
||||
}
|
||||
}()
|
||||
return c.Save(provider, func() ([]byte, error) { return PromptForConfigKey(true) })
|
||||
|
||||
Reference in New Issue
Block a user