Commit 55c98074 authored by Vijay Kumar Chauhan's avatar Vijay Kumar Chauhan
Browse files

Merge branch 'SG_Mongo_Deprecate' into 'devbranch'

#28 Deprecated mongodb package.

See merge request !291
parents 6be2345f 2797d1ef
4 merge requests!302merge devbranch into staging,!299Devbranch,!296merge devbranch to staging.,!291#28 Deprecated mongodb package.
Showing with 2 additions and 1 deletion
// Deprecated: As of corepkgv2 tag 1.2.15 onwards no longer maintained,simply use coremongo and in future it will be removed.
package mongodb package mongodb
import ( import (
...@@ -159,7 +160,7 @@ func InitNewSession(hostDetails MongoHost) error { ...@@ -159,7 +160,7 @@ func InitNewSession(hostDetails MongoHost) error {
return nil return nil
} }
//GetMongoConnection method // GetMongoConnection method
func GetMongoConnection(hostName string) (*mgo.Session, error) { func GetMongoConnection(hostName string) (*mgo.Session, error) {
defer mutex.Unlock() defer mutex.Unlock()
mutex.Lock() mutex.Lock()
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment