Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions tools/cache-analyzer/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"fmt"
"os"
"path/filepath"
"sort"
"slices"
"strings"

"github.com/evstack/ev-node/types"
Expand Down Expand Up @@ -114,9 +114,7 @@ func analyzeEvents(events map[uint64]*DAHeightEvent, limit int) []eventEntry {
for height := range events {
heights = append(heights, height)
}
sort.Slice(heights, func(i, j int) bool {
return heights[i] < heights[j]
})
slices.Sort(heights)

// Apply limit
if limit > 0 && len(heights) > limit {
Expand Down
Loading