streamReplyWithRangeFromConsumerPEL: Redundant streamDecodeID

This commit is contained in:
Guy Benoish 2019-12-18 12:27:03 +05:30 committed by antirez
parent c1951137bb
commit f14bc2799e

View File

@ -1068,9 +1068,7 @@ size_t streamReplyWithRangeFromConsumerPEL(client *c, stream *s, streamID *start
* by the user by other means. In that case we signal it emitting * by the user by other means. In that case we signal it emitting
* the ID but then a NULL entry for the fields. */ * the ID but then a NULL entry for the fields. */
addReplyArrayLen(c,2); addReplyArrayLen(c,2);
streamID id; addReplyStreamID(c,&thisid);
streamDecodeID(ri.key,&id);
addReplyStreamID(c,&id);
addReplyNullArray(c); addReplyNullArray(c);
} else { } else {
streamNACK *nack = ri.data; streamNACK *nack = ri.data;