mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-04-28 04:48:44 +08:00
add error handling : mongo
This commit is contained in:
parent
ac1e557c46
commit
8addb49012
@ -20,8 +20,6 @@ import (
|
|||||||
//"go.mongodb.org/mongo-driver/bson"
|
//"go.mongodb.org/mongo-driver/bson"
|
||||||
"go.mongodb.org/mongo-driver/mongo"
|
"go.mongodb.org/mongo-driver/mongo"
|
||||||
// "go.mongodb.org/mongo-driver/mongo/options"
|
// "go.mongodb.org/mongo-driver/mongo/options"
|
||||||
|
|
||||||
|
|
||||||
//go_redis "github.com/go-redis/redis/v8"
|
//go_redis "github.com/go-redis/redis/v8"
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -32,8 +30,6 @@ type DataBases struct {
|
|||||||
mgoSession *mgo.Session
|
mgoSession *mgo.Session
|
||||||
redisPool *redis.Pool
|
redisPool *redis.Pool
|
||||||
mongoClient *mongo.Client
|
mongoClient *mongo.Client
|
||||||
|
|
||||||
rdb *
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func key(dbAddress, dbName string) string {
|
func key(dbAddress, dbName string) string {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user