mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-10 01:01:56 +00:00
fix batch buffer size check
Signed-off-by: c9s <yoanlin93@gmail.com>
This commit is contained in:
parent
6b26d5a956
commit
bf0186cf55
|
@ -130,7 +130,7 @@ func (sel SyncTask) execute(ctx context.Context, db *sqlx.DB, startTime time.Tim
|
|||
}
|
||||
|
||||
if sel.BatchInsert != nil {
|
||||
if batchBufferRefVal.Len() >= sel.BatchInsertBuffer-1 {
|
||||
if batchBufferRefVal.Len() > sel.BatchInsertBuffer-1 {
|
||||
if sel.LogInsert {
|
||||
logrus.Infof("batch inserting %d %T", batchBufferRefVal.Len(), obj)
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue
Block a user