Commit bde1f0a8 authored by antirez's avatar antirez
Browse files

RESP3: change streams items from maps to arrays.

Streams items are similar to dictionaries, however they preserve both
the order, and allow for duplicated field names. So a map is not a
semantically sounding way to deal with this.

https://twitter.com/antirez/status/1248261087553880069
parent bec68bff
...@@ -963,7 +963,7 @@ size_t streamReplyWithRange(client *c, stream *s, streamID *start, streamID *end ...@@ -963,7 +963,7 @@ size_t streamReplyWithRange(client *c, stream *s, streamID *start, streamID *end
addReplyArrayLen(c,2); addReplyArrayLen(c,2);
addReplyStreamID(c,&id); addReplyStreamID(c,&id);
addReplyMapLen(c,numfields); addReplyArrayLen(c,numfields*2);
/* Emit the field-value pairs. */ /* Emit the field-value pairs. */
while(numfields--) { while(numfields--) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment