MCPcopy Create free account
hub / github.com/F-Stack/f-stack / streamCreateNACK

Function streamCreateNACK

app/redis-6.2.6/src/t_stream.c:2238–2244  ·  view source on GitHub ↗

Create a NACK entry setting the delivery count to 1 and the delivery * time to the current time. The NACK consumer will be set to the one * specified as argument of the function. */

Source from the content-addressed store, hash-verified

2236 * time to the current time. The NACK consumer will be set to the one
2237 * specified as argument of the function. */
2238streamNACK *streamCreateNACK(streamConsumer *consumer) {
2239 streamNACK *nack = zmalloc(sizeof(*nack));
2240 nack->delivery_time = mstime();
2241 nack->delivery_count = 1;
2242 nack->consumer = consumer;
2243 return nack;
2244}
2245
2246/* Free a NACK entry. */
2247void streamFreeNACK(streamNACK *na) {

Callers 4

rdbLoadObjectFunction · 0.85
streamDupFunction · 0.85
streamReplyWithRangeFunction · 0.85
xclaimCommandFunction · 0.85

Calls 2

zmallocFunction · 0.85
mstimeFunction · 0.70

Tested by

no test coverage detected