File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff 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" : {}}
You can’t perform that action at this time.
0 commit comments