mongo index modify

pull/351/head
Gordon 2 years ago
parent 3714873b7b
commit 0a28bcfbe9

@ -98,7 +98,7 @@ func init() {
fmt.Println("send_id", "-send_time", "index create failed", err.Error())
panic(err.Error())
}
if err := createMongoIndex(mongoClient, cChat, true, "uid"); err != nil {
if err := createMongoIndex(mongoClient, cChat, false, "uid"); err != nil {
fmt.Println("uid", " index create failed", err.Error())
panic(err.Error())
}

Loading…
Cancel
Save