check log

This commit is contained in:
Nam Huynh 2021-10-07 23:34:42 +07:00
parent 1627bbdb61
commit c2a2960b43
1 changed files with 2 additions and 0 deletions

View File

@ -20,6 +20,8 @@ func CreateIndex(colName string, ind mongo.IndexModel) {
return return
} }
fmt.Println("ind", ind)
opts := options.CreateIndexes().SetMaxTime(time.Minute * 10) opts := options.CreateIndexes().SetMaxTime(time.Minute * 10)
_, err := col.Indexes().CreateOne(context.Background(), ind, opts) _, err := col.Indexes().CreateOne(context.Background(), ind, opts)
if err != nil { if err != nil {