sun-pc-linux 3 days ago
parent
commit
57d70575ab
2 changed files with 2 additions and 2 deletions
  1. 1 1
      src/db/db.go
  2. 1 1
      src/db/redis.go

+ 1 - 1
src/db/db.go

@@ -36,7 +36,7 @@ func (db *MongoDB) GetOrCreateDatabase(name string) *mongo.Database {
 
 func NewMongoDB(bus *comm.NatsBus) *MongoDB {
 
-	inst, err := bus.NewMongoDBFromConfig("nrhe-mongo")
+	inst, err := bus.NewMongoDBFromConfig("moutai-mongo")
 
 	if err != nil {
 		panic(err)

+ 1 - 1
src/db/redis.go

@@ -6,7 +6,7 @@ import (
 )
 
 func NewRedisClient(bus *comm.NatsBus) *redis.Client {
-	client, err := bus.NewRedisFromConfig("nrhe-redis")
+	client, err := bus.NewRedisFromConfig("moutai-redis")
 
 	if err != nil {
 		return nil