Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
Signed-off-by: Owen Diehl <[email protected]>
  • Loading branch information
owen-d committed Feb 1, 2024
1 parent 7172d6b commit 7065f6c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pkg/storage/bloom/v1/bounds.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ func (b FingerprintBounds) Hash(h hash.Hash32) error {
// TODO(owen-d): incorporate this into the schema so we can change it,
// similar to `{,Parse}ExternalKey`
func (b FingerprintBounds) String() string {
return fmt.Sprint(fmt.Sprintf("%016x-%016x", uint64(b.Min), uint64(b.Max)))
return fmt.Sprintf("%016x-%016x", uint64(b.Min), uint64(b.Max))
}

func (b FingerprintBounds) Less(other FingerprintBounds) bool {
Expand Down
4 changes: 2 additions & 2 deletions pkg/storage/stores/shipper/bloomshipper/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -126,13 +126,13 @@ func (b *BloomClient) PutMeta(ctx context.Context, meta Meta) error {
}

func externalBlockKey(ref BlockRef) string {
blockParentFolder := ref.Bounds.Addr()
blockParentFolder := ref.Bounds.String()
filename := fmt.Sprintf("%d-%d-%x", ref.StartTimestamp, ref.EndTimestamp, ref.Checksum)
return path.Join(rootFolder, ref.TableName, ref.TenantID, bloomsFolder, blockParentFolder, filename)
}

func externalMetaKey(ref MetaRef) string {
filename := fmt.Sprintf("%s-%d-%d-%x", ref.Bounds.Addr(), ref.StartTimestamp, ref.EndTimestamp, ref.Checksum)
filename := fmt.Sprintf("%s-%d-%d-%x", ref.Bounds.String(), ref.StartTimestamp, ref.EndTimestamp, ref.Checksum)
return path.Join(rootFolder, ref.TableName, ref.TenantID, metasFolder, filename)
}

Expand Down

0 comments on commit 7065f6c

Please sign in to comment.