Unverified Commit cf31602b authored by Salvatore Sanfilippo's avatar Salvatore Sanfilippo Committed by GitHub
Browse files

Merge pull request #6677 from guybe7/deocde_id_once

streamReplyWithRangeFromConsumerPEL: Redundant streamDecodeID
parents 7e64aa80 5e0fe4c7
...@@ -1068,9 +1068,7 @@ size_t streamReplyWithRangeFromConsumerPEL(client *c, stream *s, streamID *start ...@@ -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;
......
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