mirror of https://github.com/tidwall/tile38.git
parent
d9c46a3f29
commit
29634f86ba
|
@ -386,6 +386,7 @@ func (sw *scanWriter) writeObject(opts ScanWriterParams) bool {
|
|||
}))
|
||||
}
|
||||
|
||||
if sw.hasFieldsOutput() {
|
||||
fvs := orderFields(sw.fmap, opts.fields)
|
||||
if len(fvs) > 0 {
|
||||
fvals := make([]resp.Value, 0, len(fvs)*2)
|
||||
|
@ -395,7 +396,7 @@ func (sw *scanWriter) writeObject(opts ScanWriterParams) bool {
|
|||
}
|
||||
vals = append(vals, resp.ArrayValue(fvals))
|
||||
}
|
||||
|
||||
}
|
||||
if opts.distance > 0 {
|
||||
vals = append(vals, resp.FloatValue(opts.distance))
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue