mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-27 09:15:15 +00:00
batch: fix time range query
when sentAny == false, continue to the next batch
This commit is contained in:
parent
ad8ea86173
commit
ed8d66cdef
|
@ -115,8 +115,11 @@ func (q *AsyncTimeRangedBatchQuery) Query(ctx context.Context, ch interface{}, s
|
||||||
}
|
}
|
||||||
|
|
||||||
if !sentAny {
|
if !sentAny {
|
||||||
log.Debugf("batch querying %T: %d/%d records are not sent", q.Type, listLen, listLen)
|
// there are 2 reasons that records can not send
|
||||||
return
|
// 1) duplicated record
|
||||||
|
// 2) out-of-range record
|
||||||
|
log.Debugf("batch querying %T: %d/%d records are not sent, continue to the next batch", q.Type, listLen, listLen)
|
||||||
|
continue
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}()
|
}()
|
||||||
|
|
Loading…
Reference in New Issue
Block a user