From 5d9d7dd34b084012ed71e89795ebdabf25ecf997 Mon Sep 17 00:00:00 2001 From: lakshit verma Date: Mon, 24 Aug 2026 00:39:08 +0530 Subject: [PATCH] store: gofmt after sort import --- internal/store/store.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/internal/store/store.go b/internal/store/store.go index 53f1840..5aaf884 100644 --- a/internal/store/store.go +++ b/internal/store/store.go @@ -261,11 +261,11 @@ const DefaultScanLimit = 100000 type resultHeap []Result -func (h resultHeap) Len() int { return len(h) } -func (h resultHeap) Less(i, j int) bool { return h[i].Seq < h[j].Seq } -func (h resultHeap) Swap(i, j int) { h[i], h[j] = h[j], h[i] } -func (h *resultHeap) Push(x any) { *h = append(*h, x.(Result)) } -func (h *resultHeap) Pop() any { old := *h; n := len(old); x := old[n-1]; *h = old[:n-1]; return x } +func (h resultHeap) Len() int { return len(h) } +func (h resultHeap) Less(i, j int) bool { return h[i].Seq < h[j].Seq } +func (h resultHeap) Swap(i, j int) { h[i], h[j] = h[j], h[i] } +func (h *resultHeap) Push(x any) { *h = append(*h, x.(Result)) } +func (h *resultHeap) Pop() any { old := *h; n := len(old); x := old[n-1]; *h = old[:n-1]; return x } func (s *Store) Scan(apex string, limit int) ([]Result, error) { if limit <= 0 {