gocommon 업데이트 반영

This commit is contained in:
2023-09-21 13:18:41 +09:00
parent 114461c51d
commit d1ff6a56fc
2 changed files with 2 additions and 2 deletions

View File

@ -21,7 +21,7 @@ func TestMakeLocalUniqueId(t *testing.T) {
fmt.Println(start.Time().Format(time.RFC3339))
fmt.Println(end.Time().Format(time.RFC3339))
mongoClient, err := gocommon.NewMongoClient(context.Background(), "mongodb://121.134.91.160:27018/?replicaSet=rs0&retrywrites=true", "mountain-maingate")
mongoClient, err := gocommon.NewMongoClient(context.Background(), "mongodb://121.134.91.160:27018/mountain-maingate?replicaSet=rs0&retrywrites=true")
if err != nil {
t.Error(err)
}

View File

@ -300,7 +300,7 @@ func (mg *Maingate) prepare(context context.Context) (err error) {
}
// redis에서 env를 가져온 후에
mg.mongoClient, err = gocommon.NewMongoClient(context, mg.Mongo, "maingate")
mg.mongoClient, err = gocommon.NewMongoClient(context, mg.Mongo)
if err != nil {
return makeErrorWithStack(err)
}