Skip to content

Commit

Permalink
lint: dbPing didn't return anything
Browse files Browse the repository at this point in the history
  • Loading branch information
toqueteos committed Aug 5, 2024
1 parent 5b6004c commit a128078
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions server/db.go
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ func DbConnect(ctx context.Context, logger *zap.Logger, config Config, create bo
return db
}

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

Expand All @@ -247,8 +247,6 @@ func dbPing(ctx context.Context, logger *zap.Logger, db *sql.DB, dbName string)
errLogger.Fatal("Failed to ping database")
}
}

return nil
}

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

0 comments on commit a128078

Please sign in to comment.