From c2a2960b43ec56a9c00792fbf8d2bc474223b785 Mon Sep 17 00:00:00 2001 From: Nam Huynh Date: Thu, 7 Oct 2021 23:34:42 +0700 Subject: [PATCH] check log --- index.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/index.go b/index.go index b3e5c28..3f27140 100644 --- a/index.go +++ b/index.go @@ -20,6 +20,8 @@ func CreateIndex(colName string, ind mongo.IndexModel) { return } + fmt.Println("ind", ind) + opts := options.CreateIndexes().SetMaxTime(time.Minute * 10) _, err := col.Indexes().CreateOne(context.Background(), ind, opts) if err != nil {