From 43d263c3d512914427fe6ac5fdcc845a61778ee1 Mon Sep 17 00:00:00 2001 From: Dmitrii Stepanov Date: Thu, 22 Jun 2023 10:50:06 +0300 Subject: [PATCH] [#428] linter: Fix unkeyed assignment Thanks to gopls. Signed-off-by: Dmitrii Stepanov --- pkg/local_object_storage/engine/tree_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/local_object_storage/engine/tree_test.go b/pkg/local_object_storage/engine/tree_test.go index c2bae9772..4cd35a088 100644 --- a/pkg/local_object_storage/engine/tree_test.go +++ b/pkg/local_object_storage/engine/tree_test.go @@ -37,7 +37,7 @@ func benchmarkTreeVsSearch(b *testing.B, objCount int) { b.Fatal(err) } _, err = te.ng.TreeAddByPath(context.Background(), d, treeID, pilorama.AttributeFilename, nil, - []pilorama.KeyValue{{pilorama.AttributeFilename, []byte(strconv.Itoa(i))}}) + []pilorama.KeyValue{{Key: pilorama.AttributeFilename, Value: []byte(strconv.Itoa(i))}}) if err != nil { b.Fatal(err) }