Skip to content

Commit

Permalink
review changes
Browse files Browse the repository at this point in the history
  • Loading branch information
srinidhis94 committed Apr 13, 2021
1 parent 8ace3bc commit 9d9a498
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/sqlcommons.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ func multiDescribeHelper(tables []string, processedTables map[string]struct{}, d

func getInsertionOrder(tablesToFieldsMap map[string][]FieldDescriptor) ([]string, error) {
var tablesVisitOrder []string
tablesVisited := make(map[string]bool)
tablesVisited := make(map[string]struct{})
for len(tablesVisitOrder) < len(tablesToFieldsMap) {
newInsertCount := 0
for table, fields := range tablesToFieldsMap {
Expand All @@ -63,7 +63,7 @@ func getInsertionOrder(tablesToFieldsMap map[string][]FieldDescriptor) ([]string
}
if canInsert {
newInsertCount++
tablesVisited[table] = true
tablesVisited[table] = struct{}{}
tablesVisitOrder = append(tablesVisitOrder, table)
}
}
Expand Down

0 comments on commit 9d9a498

Please sign in to comment.