Skip to content

Commit a128078

Browse files
committed
lint: dbPing didn't return anything
1 parent 5b6004c commit a128078

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

server/db.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ func DbConnect(ctx context.Context, logger *zap.Logger, config Config, create bo
225225
return db
226226
}
227227

228-
func dbPing(ctx context.Context, logger *zap.Logger, db *sql.DB, dbName string) error {
228+
func dbPing(ctx context.Context, logger *zap.Logger, db *sql.DB, dbName string) {
229229
pingCtx, cancel := context.WithTimeout(ctx, 10*time.Second)
230230
defer cancel()
231231

@@ -247,8 +247,6 @@ func dbPing(ctx context.Context, logger *zap.Logger, db *sql.DB, dbName string)
247247
errLogger.Fatal("Failed to ping database")
248248
}
249249
}
250-
251-
return nil
252250
}
253251

254252
func dbResolveAddress(ctx context.Context, logger *zap.Logger, host string) ([]string, map[string]struct{}) {

0 commit comments

Comments
 (0)