diff --git a/service/dbmService.go b/service/dbmService.go index 5cae92d..6610a54 100644 --- a/service/dbmService.go +++ b/service/dbmService.go @@ -67,10 +67,10 @@ func GetGORMDBObject(dbmInfo *proto.DBManage) (db_ *gorm.DB, err error) { } dao.DBMMapRWMutex.Lock() - var dbValue *proto.DBValue + var dbValue proto.DBValue dbValue.Value = db_ dbValue.LastUserTime = worker.GetCurrentTimestamp() - dao.DBMMap[dbmInfo.ID] = dbValue + dao.DBMMap[dbmInfo.ID] = &dbValue dao.DBMMapRWMutex.Unlock() return db_, err }