Add more missing database close calls
This commit is contained in:
parent
34fa7d7556
commit
26809b6b5b
|
@ -216,6 +216,7 @@ func postUpdate() {
|
|||
if err != nil {
|
||||
logger.Fatalf("Failed to open a database connection: %v", err)
|
||||
}
|
||||
defer db.Close()
|
||||
|
||||
dbinfo, err := fetchInfoForPush(db, pcontext.Repo.OwnerName, pcontext.Repo.Id, pcontext.Repo.Name, pcontext.Repo.Visibility, newDescription, newVisibility)
|
||||
if err != nil {
|
||||
|
|
|
@ -32,6 +32,7 @@ func stage3() {
|
|||
if err != nil {
|
||||
logger.Fatalf("Failed to open a database connection: %v", err)
|
||||
}
|
||||
defer db.Close()
|
||||
|
||||
var subscriptions []WebhookSubscription
|
||||
var deliveries []WebhookDelivery
|
||||
|
|
Loading…
Reference in New Issue