Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
gagliardetto committed May 9, 2024
1 parent bd6ab88 commit e2a146c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion bucketteer/write.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import (

bin "github.com/gagliardetto/binary"
"github.com/rpcpool/yellowstone-faithful/indexmeta"
"k8s.io/klog/v2"
)

type Writer struct {
Expand Down Expand Up @@ -226,7 +227,7 @@ func seal(
for prefix := range prefixToHashes {
entries := getCleanSet(prefixToHashes[prefix])
if len(entries) != len(prefixToHashes[prefix]) {
panic(fmt.Sprintf("duplicate hashes for prefix %v", prefix))
klog.Errorf("duplicate hashes for prefix %v", prefix)
}
sortWithCompare(entries, func(i, j int) int {
if entries[i] < entries[j] {
Expand Down
3 changes: 2 additions & 1 deletion deprecated/bucketteer/write.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import (
"sort"

bin "github.com/gagliardetto/binary"
"k8s.io/klog/v2"
)

type Writer struct {
Expand Down Expand Up @@ -206,7 +207,7 @@ func seal(
for _, prefix := range prefixes {
entries := getCleanSet(prefixToHashes[prefix])
if len(entries) != len(prefixToHashes[prefix]) {
panic(fmt.Sprintf("duplicate hashes for prefix %v", prefix))
klog.Errorf("duplicate hashes for prefix %v", prefix)
}
sortWithCompare(entries, func(i, j int) int {
if entries[i] < entries[j] {
Expand Down

0 comments on commit e2a146c

Please sign in to comment.