Commit b9e5d02a by mushishixian

修改连接逻辑

parent 524692dd
......@@ -12,7 +12,7 @@ func GetMongoConn(mongoConfig *util.MongoConn) (*mgo.Session, error) {
url := mongoConfig.Host
session, err = mgo.Dial(url)
if err != nil {
return nil, err
panic(err)
}
//fmt.Println("url",url)
//fmt.Println("maxPoolSizeInt",maxPoolSizeInt)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment