Skip to content

Commit

Permalink
[-] fix linter warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
pashagolub committed Oct 26, 2023
1 parent 24deb84 commit f0d1ee1
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions src/db/metric.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,6 @@ func GetMetricSchemaType(ctx context.Context, conn PgxIface) (metricSchema Metri
return
}

func dbExecRead(ctx context.Context, conn PgxIface, sql string, args ...any) (metrics.MetricData, error) {
rows, err := conn.Query(ctx, sql, args...)
if err == nil {
return pgx.CollectRows(rows, pgx.RowToMap)
}
return nil, err
}

func versionToInt(v string) uint {
if len(v) == 0 {
return 0
Expand Down Expand Up @@ -85,7 +77,6 @@ func ReadMetricsFromPostgres(ctx context.Context, logger log.LoggerIface, conn P
if err != nil {
return
}
// data, err := dbExecRead(ctx, conn, sql)
if len(data) == 0 {
logger.Warning("no active metric definitions found from config DB")
return
Expand Down

0 comments on commit f0d1ee1

Please sign in to comment.