check log
This commit is contained in:
parent
1627bbdb61
commit
c2a2960b43
2
index.go
2
index.go
|
@ -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 {
|
||||||
|
|
Loading…
Reference in New Issue