From 18b098ee822b8a9456eec7ee8a4c889ff3151bf2 Mon Sep 17 00:00:00 2001 From: tian Date: Mon, 10 Feb 2020 16:52:11 +0800 Subject: [PATCH] #87 lint --- server/service/mongo/session/session.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/server/service/mongo/session/session.go b/server/service/mongo/session/session.go index 36ceab4e..246e1641 100644 --- a/server/service/mongo/session/session.go +++ b/server/service/mongo/session/session.go @@ -164,6 +164,8 @@ func DropView(ctx context.Context, view string) error { } return nil } + +//GetColInfo get collection info func GetColInfo(ctx context.Context, name string) (*CollectionInfo, error) { cur, err := GetDB().ListCollections(ctx, bson.M{"name": name, "type": "view"}) if err != nil {