#28 Deprecated mongodb package.

Merged Somnath Ghorpade requested to merge SG_Mongo_Deprecate into devbranch
Compare and
1 file
+ 2
1
Preferences
File browser
Compare changes
+ 2
1
// Deprecated: As of corepkgv2 tag 1.2.15 onwards no longer maintained,simply use coremongo and in future it will be removed.
package mongodb
import (
@@ -159,7 +160,7 @@ func InitNewSession(hostDetails MongoHost) error {
return nil
}
//GetMongoConnection method
// GetMongoConnection method
func GetMongoConnection(hostName string) (*mgo.Session, error) {
defer mutex.Unlock()
mutex.Lock()