mirror of
https://github.com/aykhans/movier.git
synced 2025-07-03 02:15:23 +00:00
pgx.Conn -> pgxpool.Pool
This commit is contained in:
@ -1,7 +1,6 @@
|
||||
package cmd
|
||||
|
||||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
"log"
|
||||
"net/http"
|
||||
@ -36,7 +35,7 @@ func runServe() error {
|
||||
return err
|
||||
}
|
||||
db, err := postgresql.NewDB(dbURL)
|
||||
defer db.Close(context.Background())
|
||||
defer db.Close()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
Reference in New Issue
Block a user