mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-22 06:53:52 +00:00
service: update id map when inserting record
This commit is contained in:
parent
54d0a83eee
commit
4f42f90b49
|
@ -129,6 +129,7 @@ func (sel SyncTask) execute(ctx context.Context, db *sqlx.DB, startTime time.Tim
|
|||
}
|
||||
}
|
||||
|
||||
ids[id] = struct{}{}
|
||||
if sel.BatchInsert != nil {
|
||||
if batchBufferRefVal.Len() > sel.BatchInsertBuffer-1 {
|
||||
if sel.LogInsert {
|
||||
|
|
Loading…
Reference in New Issue
Block a user