From 2e765636e5feea6c5f9dd5f2a600a9d84f72f691 Mon Sep 17 00:00:00 2001 From: Drew DeVault Date: Thu, 14 Nov 2019 14:08:20 -0500 Subject: [PATCH] gitsrht-shell: don't ping database Let it fail later. I'd rather fail late and work fast. --- gitsrht-shell/main.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/gitsrht-shell/main.go b/gitsrht-shell/main.go index 4caedc7..2285349 100644 --- a/gitsrht-shell/main.go +++ b/gitsrht-shell/main.go @@ -147,9 +147,6 @@ func main() { if err != nil { logger.Fatalf("Failed to open a database connection: %v", err) } - if err := db.Ping(); err != nil { - logger.Fatalf("Failed to open a database connection: %v", err) - } // Note: when updating push access logic, also update scm.sr.ht/access.py var ( -- 2.38.4