Skip to content

Commit 4df8389

Browse files
authored
chore: package imported more than once (#1979)
1 parent 220beca commit 4df8389

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

stream_test.go

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ import (
2828
"github.com/golang/protobuf/proto"
2929
"github.com/stretchr/testify/require"
3030

31-
"github.com/dgraph-io/badger/v4/pb"
3231
bpb "github.com/dgraph-io/badger/v4/pb"
3332
"github.com/dgraph-io/badger/v4/y"
3433
"github.com/dgraph-io/ristretto/z"
@@ -295,18 +294,18 @@ func TestStreamCustomKeyToList(t *testing.T) {
295294

296295
stream := db.NewStreamAt(math.MaxUint64)
297296
stream.LogPrefix = "Testing"
298-
stream.KeyToList = func(key []byte, itr *Iterator) (*pb.KVList, error) {
297+
stream.KeyToList = func(key []byte, itr *Iterator) (*bpb.KVList, error) {
299298
item := itr.Item()
300299
val, err := item.ValueCopy(nil)
301300
if err != nil {
302301
return nil, err
303302
}
304-
kv := &pb.KV{
303+
kv := &bpb.KV{
305304
Key: y.Copy(item.Key()),
306305
Value: val,
307306
}
308-
return &pb.KVList{
309-
Kv: []*pb.KV{kv},
307+
return &bpb.KVList{
308+
Kv: []*bpb.KV{kv},
310309
}, nil
311310
}
312311
res := map[string]struct{}{"p0": {}, "p1": {}, "p2": {}}

0 commit comments

Comments
 (0)