forked from TrueCloudLab/frostfs-node
[#1072] Fix gofumpt issues
Signed-off-by: Anton Nikiforov <an.nikiforov@yadro.com>
This commit is contained in:
parent
531542ce60
commit
d614f04a0a
2 changed files with 2 additions and 1 deletions
|
@ -17,6 +17,7 @@ func (h filenameHeap) Swap(i, j int) { h[i], h[j] = h[j], h[i] }
|
||||||
func (h *filenameHeap) Push(x any) {
|
func (h *filenameHeap) Push(x any) {
|
||||||
*h = append(*h, x.(heapInfo))
|
*h = append(*h, x.(heapInfo))
|
||||||
}
|
}
|
||||||
|
|
||||||
func (h *filenameHeap) Pop() any {
|
func (h *filenameHeap) Pop() any {
|
||||||
old := *h
|
old := *h
|
||||||
n := len(old)
|
n := len(old)
|
||||||
|
|
|
@ -130,7 +130,7 @@ func TestGetSubTreeOrderAsc(t *testing.T) {
|
||||||
|
|
||||||
t.Run("boltdb forest", func(t *testing.T) {
|
t.Run("boltdb forest", func(t *testing.T) {
|
||||||
p := pilorama.NewBoltForest(pilorama.WithPath(filepath.Join(t.TempDir(), "pilorama")))
|
p := pilorama.NewBoltForest(pilorama.WithPath(filepath.Join(t.TempDir(), "pilorama")))
|
||||||
require.NoError(t, p.Open(context.Background(), 0644))
|
require.NoError(t, p.Open(context.Background(), 0o644))
|
||||||
require.NoError(t, p.Init())
|
require.NoError(t, p.Init())
|
||||||
testGetSubTreeOrderAsc(t, p)
|
testGetSubTreeOrderAsc(t, p)
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in a new issue