Skip to content

Commit b201032

Browse files
committed
Ooops
1 parent 58afaaf commit b201032

File tree

3 files changed

+2
-4
lines changed

3 files changed

+2
-4
lines changed

defaults.go

-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import "time"
44

55
const (
66
DefaultIndex = "primary"
7-
87
)
98

109
var (

pack_data.go

-2
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ type packData struct {
1313
packedDefaultSpace []byte
1414
packedDefaultIndex []byte
1515
packedIterEq []byte
16-
packedDefaultLimit []byte
1716
packedDefaultOffset []byte
1817
packedSingleKey []byte
1918
spaceMap map[string]uint64
@@ -52,7 +51,6 @@ func newPackData(defaultSpace interface{}) *packData {
5251
packedDefaultSpace: packedDefaultSpace,
5352
packedDefaultIndex: encodeValues2(KeyIndexNo, uint32(0)),
5453
packedIterEq: encodeValues2(KeyIterator, IterEq),
55-
packedDefaultLimit: encodeValues2(KeyLimit, DefaultLimit),
5654
packedDefaultOffset: encodeValues2(KeyOffset, 0),
5755
packedSingleKey: packSelectSingleKey(),
5856
spaceMap: make(map[string]uint64),

select.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,8 @@ func (q *Select) packMsg(data *packData, b []byte) (o []byte, err error) {
4242
}
4343

4444
if q.Limit == 0 {
45-
o = append(o, data.packedDefaultLimit...)
45+
o = msgp.AppendUint(o, KeyLimit)
46+
o = msgp.AppendUint(o, uint(DefaultLimit))
4647
} else {
4748
o = msgp.AppendUint(o, KeyLimit)
4849
o = msgp.AppendUint(o, uint(q.Limit))

0 commit comments

Comments
 (0)