We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 71c123a commit a17e3f2Copy full SHA for a17e3f2
pkg/storage/storage_test.go
@@ -48,10 +48,10 @@ var _ = Describe("storage package", func() {
48
st2 := testing.ParseTime("0001-01-01-00:00:00")
49
et2 := testing.ParseTime("0001-01-01-00:00:30")
50
key, _ := ParseKey("foo")
51
- err := s.Put(st, et, key, tree)
+ err := s.Put(st, et, key, tree, "testspy", 100)
52
Expect(err).ToNot(HaveOccurred())
53
54
- t2, _, err := s.Get(st2, et2, key)
+ t2, _, _, _, err := s.Get(st2, et2, key)
55
56
Expect(t2).ToNot(BeNil())
57
@@ -61,7 +61,7 @@ var _ = Describe("storage package", func() {
61
62
s2, err = New(cfg)
63
64
- t3, _, err := s2.Get(st2, et2, key)
+ t3, _, _, _, err := s2.Get(st2, et2, key)
65
66
Expect(t3).ToNot(BeNil())
67
pkg/storage/tree/tree.go
@@ -94,7 +94,7 @@ func (t *Tree) String() string {
94
res := ""
95
t.iterate(func(k []byte, v uint64) {
96
if v > 0 {
97
- res += fmt.Sprintf("%q %d\n", k, v)
+ res += fmt.Sprintf("%q %d\n", k[2:], v)
98
}
99
})
100
0 commit comments