Skip to content

Commit

Permalink
fix db init, keep conn open
Browse files Browse the repository at this point in the history
  • Loading branch information
wen-templari committed May 21, 2024
1 parent b6fc8f7 commit 2799180
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion repo/db.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@ func InitDB() {
}

m.Up() // or m.Step(2) if you want to explicitly set the number of migrations to run
m.Close()

db.SetMaxOpenConns(1000) // The default is 0 (unlimited)
db.SetMaxIdleConns(10) // defaultMaxIdleConns = 2
Expand Down

0 comments on commit 2799180

Please sign in to comment.