Skip to main content

encode_ack

Function encode_ack 

Source
pub fn encode_ack(generation: u64, current_offset: u64) -> Vec<u8> 
Expand description

Encode the primary’s +ACK <generation> <current-offset>\r\n response. generation is the primary’s CURRENT feed generation — the replica records it as the generation of whatever data this session delivers (frames or snapshot).