Skip to content

Commit

Permalink
address comment
Browse files Browse the repository at this point in the history
Signed-off-by: lance6716 <[email protected]>
  • Loading branch information
lance6716 committed Dec 8, 2022
1 parent a49082f commit 118ed01
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions dm/pkg/checker/table_structure.go
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ func (c *TablesChecker) Check(ctx context.Context) *Result {
pool.Go(worker.handle)
}

dispatchTableItemWithDownstreamTable(c.tableMap, pool.PutJob)
dispatchTableItemWithDownstreamTable(c.tableMap, pool)

if err := pool.Wait(); err != nil {
markCheckError(r, err)
Expand Down Expand Up @@ -930,12 +930,12 @@ func dispatchTableItem(ctx context.Context, tableMap map[string][]filter.Table,

func dispatchTableItemWithDownstreamTable(
tableMaps map[string]map[filter.Table][]filter.Table,
putJobFn func(*checkItem) bool,
pool *WorkerPool[*checkItem, []*incompatibilityOption],
) {
for sourceID, tableMap := range tableMaps {
for downTable, upTables := range tableMap {
for _, upTable := range upTables {
ok := putJobFn(&checkItem{
ok := pool.PutJob(&checkItem{
upstreamTable: upTable,
downstreamTable: downTable,
sourceID: sourceID,
Expand Down

0 comments on commit 118ed01

Please sign in to comment.