fix bug
This commit is contained in:
@@ -24,10 +24,10 @@ func GetStockDaily() {
|
||||
"end_date": end,
|
||||
}
|
||||
|
||||
log.Println("GetStockDaily", code, start, end)
|
||||
if start == end {
|
||||
continue
|
||||
}
|
||||
|
||||
fields := []string{}
|
||||
reply, err := TushareClient.Daily(params, fields)
|
||||
if err != nil {
|
||||
@@ -62,7 +62,7 @@ func GetStockDaily() {
|
||||
}
|
||||
|
||||
if len(records) > 0 {
|
||||
impl.DBService.CreateInBatches(records, 100)
|
||||
impl.DBService.CreateInBatches(records, 50)
|
||||
}
|
||||
|
||||
time.Sleep(200 * time.Microsecond)
|
||||
|
||||
Reference in New Issue
Block a user