mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-25 16:25:16 +00:00
optimizer: close config file handle
This commit is contained in:
parent
695d948097
commit
3a072181bc
|
@ -45,6 +45,10 @@ func (e *LocalProcessExecutor) Execute(configJson []byte) (*backtest.SummaryRepo
|
|||
return nil, err
|
||||
}
|
||||
|
||||
if err := tf.Close(); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
c := exec.Command(e.Bin, "backtest", "--config", tf.Name(), "--output", e.OutputDir, "--subdir")
|
||||
output, err := c.Output()
|
||||
if err != nil {
|
||||
|
|
Loading…
Reference in New Issue
Block a user