use default mongo db (#103)

This commit is contained in:
bittoy
2020-09-28 16:35:07 +08:00
committed by GitHub
parent e5d7c3ab04
commit 0a36031d48
3 changed files with 17 additions and 16 deletions

View File

@@ -19,7 +19,7 @@ type Roster struct {
}
func main() {
model := mongo.MustNewModel("localhost:27017", "blackboard", "roster")
model := mongo.MustNewModel("localhost:27017/blackboard", "roster")
for i := 0; i < 1000; i++ {
session, err := model.TakeSession()
if err != nil {