Skip to content

Commit

Permalink
refactor(blooms): Better task naming (#13361)
Browse files Browse the repository at this point in the history
  • Loading branch information
salvacorts authored Jul 1, 2024
1 parent 86fbfff commit 0602b90
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions pkg/bloombuild/protos/compat.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ package protos
import (
"fmt"

"github.com/google/uuid"
"github.com/pkg/errors"
"github.com/prometheus/common/model"

Expand All @@ -28,9 +27,15 @@ type Task struct {
Gaps []GapWithBlocks
}

func NewTask(table config.DayTable, tenant string, bounds v1.FingerprintBounds, tsdb tsdb.SingleTenantTSDBIdentifier, gaps []GapWithBlocks) *Task {
func NewTask(
table config.DayTable,
tenant string,
bounds v1.FingerprintBounds,
tsdb tsdb.SingleTenantTSDBIdentifier,
gaps []GapWithBlocks,
) *Task {
return &Task{
ID: uuid.NewString(),
ID: fmt.Sprintf("%s-%s-%s-%d-%d", table.Addr(), tenant, bounds.String(), tsdb.Checksum, len(gaps)),

Table: table,
Tenant: tenant,
Expand Down

0 comments on commit 0602b90

Please sign in to comment.